summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorFazil Babu <fazil47babu@gmail.com>2022-03-12 13:58:32 +0530
committerFazil Babu <fazil47babu@gmail.com>2022-03-12 14:00:04 +0530
commita3598b487acb028aac197ea962dfd89d43198df7 (patch)
tree004f4c9e4dd0c6cc87dee22cc59f0978bafd785a /scene/gui
parentd5076439e44e6eab5732e1d2fc0f30bb6f34e5f9 (diff)
popup_request signal emits mouse click position
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/graph_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index ab21c747cf..1394b4192f 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -1170,7 +1170,7 @@ void GraphEdit::gui_input(const Ref<InputEvent> &p_ev) {
if (connecting) {
force_connection_drag_end();
} else {
- emit_signal(SNAME("popup_request"), get_screen_position() + b->get_position());
+ emit_signal(SNAME("popup_request"), b->get_position());
}
}
}