aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRémi Verschelde2018-04-03 23:53:47 +0200
committerGitHub2018-04-03 23:53:47 +0200
commitbcf5b748b52271774c0362717cab242527baf99d (patch)
tree032dfea2d9dcf3dd5874ae4680452e47236979b9 /editor/plugins
parent1710582473330dc6e7758953e3378187b5e3f226 (diff)
parent7cbf301f31a57771b3c7dbe378654195f3db4ab1 (diff)
downloadgodot-bcf5b748b52271774c0362717cab242527baf99d.tar.gz
godot-bcf5b748b52271774c0362717cab242527baf99d.tar.zst
godot-bcf5b748b52271774c0362717cab242527baf99d.zip
Merge pull request #17832 from YeldhamDev/popups_size_fix
Fixed some popups not shrinking their size back when losing items
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/animation_tree_editor_plugin.cpp2
1 files changed, 2 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)