Преглед изворни кода

tools: enable SKINNING when importing animated meshes

Part-of: #276
Daniele Bartolini пре 11 месеци
родитељ
комит
9ea4cd287c
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      tools/resource/mesh_resource_fbx.vala

+ 3 - 0
tools/resource/mesh_resource_fbx.vala

@@ -728,6 +728,9 @@ public class FBXImporter
 						}
 					}
 
+					if (options.import_animation.value)
+						shader += "+SKINNING";
+
 					db.set_property_string(material_id, "shader", shader);
 					db.save(project.absolute_path(material_resource_name) + ".material", material_id);
 					imported_materials.set(material, material_resource_name);