Avoid the Skeleton3DGizmoPlugin crash when clicking in the editor.

This commit is contained in:
K. S. Ernest (iFire) Lee 2022-11-23 07:04:15 -08:00
parent a8a88194a5
commit e0b296ae82

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