Fix crash when reimporting with Skeleton3D selected.

This commit is contained in:
Saracen 2023-10-25 20:53:48 +01:00
parent 06d5189167
commit ed083a9fbe
1 changed files with 3 additions and 1 deletions

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;