diff options
author | Niko Abeler <me@h4kor.de> | 2017-08-12 13:23:08 +0200 |
---|---|---|
committer | Niko Abeler <me@h4kor.de> | 2017-08-13 17:35:59 +0200 |
commit | 07809c162f90ae77c9cf6f0662dbb4b288f82a07 (patch) | |
tree | 0925b2c19e13b6e15c5784b74e52ca4cc1fb37da /editor/plugins/canvas_item_editor_plugin.cpp | |
parent | 23f6d3fa69935c90c6cdcee342ae99d226e9b4ab (diff) |
Showing anchor icon in editor if control-node is hidden (fixes #9542)
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index a35d7a9a50..c19f0ff4db 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -2079,13 +2079,10 @@ void CanvasItemEditor::_notification(int p_what) { } } - bool show_anchor = all_control && has_control; - if (show_anchor != anchor_menu->is_visible()) { - if (show_anchor) - anchor_menu->show(); - else - anchor_menu->hide(); - } + if (all_control && has_control) + anchor_menu->show(); + else + anchor_menu->hide(); for (Map<ObjectID, BoneList>::Element *E = bone_list.front(); E; E = E->next()) { |