add null check in MeshInstance::_mesh_changed()
This commit is contained in:
parent
96a3f01ac5
commit
013fc360d7
|
@ -701,6 +701,7 @@ bool MeshInstance::is_software_skinning_transform_normals_enabled() const {
|
|||
}
|
||||
|
||||
void MeshInstance::_mesh_changed() {
|
||||
ERR_FAIL_COND(mesh.is_null());
|
||||
materials.resize(mesh->get_surface_count());
|
||||
|
||||
if (software_skinning) {
|
||||
|
|
Loading…
Reference in New Issue