Merge pull request #83964 from SaracenOne/skeleton_reimport_crashfix

Fix crash when reimporting with Skeleton3D selected.
This commit is contained in:
Rémi Verschelde 2023-10-26 09:00:45 +02:00
commit 53a894e520
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -871,7 +871,9 @@ void Skeleton3DEditor::_notification(int p_what) {
skeleton->disconnect("pose_updated", callable_mp(this, &Skeleton3DEditor::_update_properties));
skeleton->set_transform_gizmo_visible(true);
#endif
handles_mesh_instance->get_parent()->remove_child(handles_mesh_instance);
if (handles_mesh_instance->get_parent()) {
handles_mesh_instance->get_parent()->remove_child(handles_mesh_instance);
}
}
edit_mode_toggled(false);
} break;