diff options
| author | Michael Alexsander Silva Dias | 2018-03-27 16:04:45 -0300 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-04-28 19:59:37 +0200 |
| commit | 60bc0f79a7bed70e6d98e1a92ddbfaae88022cfb (patch) | |
| tree | 6f51f7e3f6ad18fb354ae297f3feddef9d914b89 | |
| parent | c8d0d38cabc7c29bfb0807656f5f57acff52a793 (diff) | |
| download | godot-60bc0f79a7bed70e6d98e1a92ddbfaae88022cfb.tar.gz godot-60bc0f79a7bed70e6d98e1a92ddbfaae88022cfb.tar.zst godot-60bc0f79a7bed70e6d98e1a92ddbfaae88022cfb.zip | |
Fixed some popups not shrinking their size back when losing items.
(cherry picked from commit 7cbf301f31a57771b3c7dbe378654195f3db4ab1)
| -rw-r--r-- | editor/plugins/animation_tree_editor_plugin.cpp | 2 | ||||
| -rw-r--r-- | editor/scene_tree_dock.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index f0e186e4b..37213c186 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -756,6 +756,7 @@ void AnimationTreeEditor::_gui_input(Ref<InputEvent> p_event) { if (rclick_type == CLICK_INPUT_SLOT || rclick_type == CLICK_OUTPUT_SLOT) { node_popup->clear(); + node_popup->set_size(Size2(1, 1)); node_popup->add_item(TTR("Disconnect"), NODE_DISCONNECT); if (anim_tree->node_get_type(rclick_node) == AnimationTreePlayer::NODE_TRANSITION) { node_popup->add_item(TTR("Add Input"), NODE_ADD_INPUT); @@ -774,6 +775,7 @@ void AnimationTreeEditor::_gui_input(Ref<InputEvent> p_event) { if (rclick_type == CLICK_NODE) { node_popup->clear(); + node_popup->set_size(Size2(1, 1)); node_popup->add_item(TTR("Rename"), NODE_RENAME); node_popup->add_item(TTR("Remove"), NODE_ERASE); if (anim_tree->node_get_type(rclick_node) == AnimationTreePlayer::NODE_TRANSITION) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 9a4bd9a56..5dc671288 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1757,6 +1757,7 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) { subresources.clear(); menu_subresources->clear(); + menu_subresources->set_size(Size2(1, 1)); _add_children_to_popup(selection.front()->get(), 0); if (menu->get_item_count() > 0) menu->add_separator(); |
