Merge pull request #46165 from angad-k/fix-mesh-instance-crash
add null check in MeshInstance::_mesh_changed()
This commit is contained in:
commit
3374f84a2f
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue