You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Avoid the Skeleton3DGizmoPlugin crash when clicking in the editor.
This commit is contained in:
@@ -1239,7 +1239,7 @@ int Skeleton3DGizmoPlugin::subgizmos_intersect_ray(const EditorNode3DGizmo *p_gi
|
|||||||
|
|
||||||
Skeleton3DEditor *se = Skeleton3DEditor::get_singleton();
|
Skeleton3DEditor *se = Skeleton3DEditor::get_singleton();
|
||||||
|
|
||||||
if (!se->is_edit_mode()) {
|
if (!se || !se->is_edit_mode()) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user