Merge pull request #69056 from fire/skeleton-crash

Avoid the Skeleton3DGizmoPlugin crash when clicking in the editor.
This commit is contained in:
Rémi Verschelde 2022-11-23 17:23:03 +01:00
commit aad4a9252c
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -1239,7 +1239,7 @@ int Skeleton3DGizmoPlugin::subgizmos_intersect_ray(const EditorNode3DGizmo *p_gi
Skeleton3DEditor *se = Skeleton3DEditor::get_singleton();
if (!se->is_edit_mode()) {
if (!se || !se->is_edit_mode()) {
return -1;
}