Updated all .material files to have materialTypeVersion instead of propertyLayoutVersion. This was renamed in code at some point but we forgot to rename in the files. Before this was silently ignored but since I removed MaterialSourceDataSerializer, this started being reported as a warning.
Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -382,7 +382,7 @@ class MayaToLumberyard(QtWidgets.QWidget):
|
||||
material = {'description': name,
|
||||
'materialType': default_settings.get('materialType'),
|
||||
'parentMaterial': default_settings.get('parentMaterial'),
|
||||
'propertyLayoutVersion': default_settings.get('propertyLayoutVersion'),
|
||||
'materialTypeVersion': default_settings.get('materialTypeVersion'),
|
||||
'properties': self.get_shader_properties(name, material_type, file_connections)}
|
||||
self.material_definitions[name if name not in self.material_definitions.keys() else self.get_increment(name)] = material
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"description": "",
|
||||
"materialType": "Materials/Types/StandardPBR.materialtype",
|
||||
"parentMaterial": "",
|
||||
"propertyLayoutVersion": 3,
|
||||
"materialTypeVersion": 3,
|
||||
"properties": {
|
||||
"occlusion": {
|
||||
"diffuseFactor": 1.0,
|
||||
|
||||
+1
-1
@@ -628,7 +628,7 @@ class MaterialsToLumberyard(QtWidgets.QWidget):
|
||||
'description': name,
|
||||
'materialType': default_settings.get('materialType'),
|
||||
'parentMaterial': default_settings.get('parentMaterial'),
|
||||
'propertyLayoutVersion': default_settings.get('propertyLayoutVersion'),
|
||||
'materialTypeVersion': default_settings.get('materialTypeVersion'),
|
||||
'properties': self.get_lumberyard_material_properties(name, dcc_app, material_type, file_connections)}
|
||||
self.lumberyard_materials_dictionary[name if name not in self.lumberyard_materials_dictionary.keys() else
|
||||
self.get_filename_increment(name)] = material
|
||||
|
||||
+1
-1
@@ -546,7 +546,7 @@ class MaterialsToLumberyard(QtWidgets.QWidget):
|
||||
'description': name,
|
||||
'materialType': default_settings.get('materialType'),
|
||||
'parentMaterial': default_settings.get('parentMaterial'),
|
||||
'propertyLayoutVersion': default_settings.get('propertyLayoutVersion'),
|
||||
'materialTypeVersion': default_settings.get('materialTypeVersion'),
|
||||
'properties': self.get_lumberyard_material_properties(name, material_type, file_connections)}
|
||||
self.material_definitions[name if name not in self.material_definitions.keys() else
|
||||
self.get_filename_increment(name)] = material
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"description": "",
|
||||
"materialType": "Materials/Types/StandardPBR.materialtype",
|
||||
"parentMaterial": "",
|
||||
"propertyLayoutVersion": 3,
|
||||
"materialTypeVersion": 3,
|
||||
"properties": {
|
||||
"occlusion": {
|
||||
"diffuseFactor": 1.0,
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"description": "",
|
||||
"materialType": "Materials/Types/StandardPBR.materialtype",
|
||||
"parentMaterial": "",
|
||||
"propertyLayoutVersion": 3,
|
||||
"materialTypeVersion": 3,
|
||||
"properties": {
|
||||
"general": {
|
||||
"texcoord": 0
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"description": "",
|
||||
"materialType": "Materials/Types/StandardPBR.materialtype",
|
||||
"parentMaterial": "",
|
||||
"propertyLayoutVersion": 3,
|
||||
"materialTypeVersion": 3,
|
||||
"properties": {
|
||||
"general": {
|
||||
"texcoord": 0
|
||||
|
||||
+1
-1
@@ -387,7 +387,7 @@ class MayaToLumberyard(QtWidgets.QWidget):
|
||||
material = {'description': name,
|
||||
'materialType': default_settings.get('materialType'),
|
||||
'parentMaterial': default_settings.get('parentMaterial'),
|
||||
'propertyLayoutVersion': default_settings.get('propertyLayoutVersion'),
|
||||
'materialTypeVersion': default_settings.get('materialTypeVersion'),
|
||||
'properties': self.get_shader_properties(name, material_type, file_connections)}
|
||||
self.material_definitions[name if name not in self.material_definitions.keys() else self.get_increment(name)] = material
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"description": "",
|
||||
"materialType": "Materials/Types/StandardPBR.materialtype",
|
||||
"parentMaterial": "",
|
||||
"propertyLayoutVersion": 3,
|
||||
"materialTypeVersion": 3,
|
||||
"properties": {
|
||||
"occlusion": {
|
||||
"diffuseFactor": 1.0,
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"description": "",
|
||||
"materialType": "Materials/Types/StandardPBR.materialtype",
|
||||
"parentMaterial": "",
|
||||
"propertyLayoutVersion": 3,
|
||||
"materialTypeVersion": 3,
|
||||
"properties": {
|
||||
"occlusion": {
|
||||
"diffuseFactor": 1.0,
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"description": "",
|
||||
"materialType": "Materials/Types/StandardPBR.materialtype",
|
||||
"parentMaterial": "",
|
||||
"propertyLayoutVersion": 3,
|
||||
"materialTypeVersion": 3,
|
||||
"properties": {
|
||||
"general": {
|
||||
"texcoord": 0
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"material": {
|
||||
"baseMaterial": "StaticMesh.basematerial",
|
||||
"propertyLayoutVersion": 1,
|
||||
"materialTypeVersion": 1,
|
||||
"properties": {
|
||||
"general": {
|
||||
"DiffuseColor": [ 1.0, 0.5, 0.5, 1.0 ],
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"description": "",
|
||||
"materialType": "Materials\\StandardPBR\\StandardPBR.materialtype",
|
||||
"parentMaterial": "",
|
||||
"propertyLayoutVersion": 3,
|
||||
"materialTypeVersion": 3,
|
||||
"properties": {
|
||||
"general": {
|
||||
"texcoord": 0
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"description": "",
|
||||
"materialType": "Materials/Types/StandardPBR.materialtype",
|
||||
"parentMaterial": "",
|
||||
"propertyLayoutVersion": 3,
|
||||
"materialTypeVersion": 3,
|
||||
"properties": {
|
||||
"general": {
|
||||
"texcoord": 0
|
||||
|
||||
Reference in New Issue
Block a user