summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-15 21:37:00 +0100
committerGitHub <noreply@github.com>2021-01-15 21:37:00 +0100
commit2c68cb1a5671e35da82cda8940037ba953c6531c (patch)
treefc620855fa6bc6c8b3fabf361622c9ae8c9a3549
parentebe8751fff1576de65682340e81eb9f86ce23b3b (diff)
parentc955a16b3988c764953e7b9f42491cf21edd801b (diff)
Merge pull request #45212 from Chaosus/vs_fix_popup_size
Fix invalid visual shader context menu popup size
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index f2eaa9c2b5..5533fcd02b 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -2387,6 +2387,7 @@ void VisualShaderEditor::_graph_gui_input(const Ref<InputEvent> &p_event) {
menu_point = graph->get_local_mouse_position();
Point2 gpos = Input::get_singleton()->get_mouse_position();
popup_menu->set_position(gpos);
+ popup_menu->set_size(Size2(-1, -1));
popup_menu->popup();
}
}