summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-01-15 19:55:21 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2021-01-15 19:55:21 +0300
commitc955a16b3988c764953e7b9f42491cf21edd801b (patch)
tree5ca32ade051a27e8e8f0e9de85af22a670a2ee14 /editor
parentc7fb7674c8f9163a717beaa922cd7e6c8aeb77b6 (diff)
Fix invalid visual shader context menu popup size
Diffstat (limited to 'editor')
-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();
}
}