summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2022-11-23 07:04:15 -0800
committerK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2022-11-23 07:09:49 -0800
commite0b296ae82aa9d609d430d4e5ab06395d0bb94f7 (patch)
tree5d718bfa4abc0378621e19999f6adfe7e087c2ff
parenta8a88194a5cf5849d421aaec05beddbc437ebbcd (diff)
Avoid the Skeleton3DGizmoPlugin crash when clicking in the editor.
-rw-r--r--editor/plugins/skeleton_3d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/skeleton_3d_editor_plugin.cpp b/editor/plugins/skeleton_3d_editor_plugin.cpp
index fd6c9b761e..2a05f95321 100644
--- a/editor/plugins/skeleton_3d_editor_plugin.cpp
+++ b/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;
}