Fixed crash on calling set_editor_draw without properly setup
SkeletonModification
This commit is contained in:
parent
fe7559f751
commit
8168fdb8f6
1 changed files with 3 additions and 1 deletions
|
@ -216,7 +216,9 @@ void SkeletonModification2D::set_editor_draw_gizmo(bool p_draw_gizmo) {
|
||||||
editor_draw_gizmo = p_draw_gizmo;
|
editor_draw_gizmo = p_draw_gizmo;
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
if (is_setup) {
|
if (is_setup) {
|
||||||
stack->set_editor_gizmos_dirty(true);
|
if (stack) {
|
||||||
|
stack->set_editor_gizmos_dirty(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif // TOOLS_ENABLED
|
#endif // TOOLS_ENABLED
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue