Merge pull request #50688 from AndreaCatania/AndreaCatania-patch-4
Set the surface name when GLTF file is imported.
This commit is contained in:
commit
a0aeb56424
@ -2796,7 +2796,7 @@ Error GLTFDocument::_parse_meshes(Ref<GLTFState> state) {
|
|||||||
mat = mat3d;
|
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;
|
Vector<float> blend_weights;
|
||||||
|
Loading…
Reference in New Issue
Block a user