Bladeren bron

Merge pull request #50688 from AndreaCatania/AndreaCatania-patch-4

Set the surface name when GLTF file is imported.
Rémi Verschelde 4 jaren geleden
bovenliggende
commit
a0aeb56424
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      modules/gltf/gltf_document.cpp

+ 1 - 1
modules/gltf/gltf_document.cpp

@@ -2796,7 +2796,7 @@ Error GLTFDocument::_parse_meshes(Ref<GLTFState> state) {
 				mat = mat3d;
 			}
 
-			import_mesh->add_surface(primitive, array, morphs, Dictionary(), mat);
+			import_mesh->add_surface(primitive, array, morphs, Dictionary(), mat, mat->get_name());
 		}
 
 		Vector<float> blend_weights;