Browse Source

Merge pull request #69056 from fire/skeleton-crash

Avoid the Skeleton3DGizmoPlugin crash when clicking in the editor.
Rémi Verschelde 2 năm trước cách đây
mục cha
commit
aad4a9252c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/plugins/skeleton_3d_editor_plugin.cpp

+ 1 - 1
editor/plugins/skeleton_3d_editor_plugin.cpp

@@ -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;
 	}