diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-13 12:57:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 12:57:21 +0200 |
commit | 668c4986598c51976b789100e83212c2e7dc7db8 (patch) | |
tree | 2503bebfeab827c6e160e6461fa39402972e7843 /editor/plugins | |
parent | 9b89c070752451f047115004a2126f9e0b3d99ce (diff) | |
parent | 216fe8f8d98d7135afb6cc0b46eae85e319e6b8d (diff) |
Merge pull request #60030 from KoBeWi/pewport
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index a90e151adb..8d0db697e2 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -2298,7 +2298,7 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) { } add_node_menu->reset_size(); - add_node_menu->set_position(get_screen_transform().xform(b->get_position())); + add_node_menu->set_position(viewport->get_screen_transform().xform(b->get_position())); add_node_menu->popup(); node_create_position = transform.affine_inverse().xform(b->get_position()); return true; |