diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-13 14:34:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-13 14:34:11 +0200 |
commit | aa51911c690141846f0c54c7e6c23d29cd884e8f (patch) | |
tree | de7fd52c01fa75ad7001c76a6b62b30c36a980fb | |
parent | 600b4c9c7b11622e4eb5ed1e5fd70b3d3f66170e (diff) | |
parent | 8168fdb8f6e98033e6959cd15a927de1d46960f3 (diff) | |
download | redot-engine-aa51911c690141846f0c54c7e6c23d29cd884e8f.tar.gz |
Merge pull request #49543 from greatmomo/SkeletonModification_bugfix
-rw-r--r-- | scene/resources/skeleton_modification_2d.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/resources/skeleton_modification_2d.cpp b/scene/resources/skeleton_modification_2d.cpp index 9b07293965..b52a60006a 100644 --- a/scene/resources/skeleton_modification_2d.cpp +++ b/scene/resources/skeleton_modification_2d.cpp @@ -216,7 +216,9 @@ void SkeletonModification2D::set_editor_draw_gizmo(bool p_draw_gizmo) { editor_draw_gizmo = p_draw_gizmo; #ifdef TOOLS_ENABLED if (is_setup) { - stack->set_editor_gizmos_dirty(true); + if (stack) { + stack->set_editor_gizmos_dirty(true); + } } #endif // TOOLS_ENABLED } |