diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-08-16 17:34:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-16 17:34:33 +0200 |
commit | 5485233549c97c7128fc2026bc2c01d3c1c5b48d (patch) | |
tree | 362f0da49bc202d039ac1b5ced0ddfab26817abb | |
parent | 00f6c859282bb4dab3f6b4f6c20c44222221ebe9 (diff) | |
parent | 07809c162f90ae77c9cf6f0662dbb4b288f82a07 (diff) |
Merge pull request #10300 from H4kor/anchor
Show Anchor even when Control-Node is hidden
-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 322c3ae86a..9e57e53a24 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -2324,13 +2324,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()) { |