diff options
| author | Anilforextra <anilforextra@gmail.com> | 2021-09-23 20:43:43 +0545 |
|---|---|---|
| committer | Anilforextra <anilforextra@gmail.com> | 2021-09-23 22:26:07 +0545 |
| commit | cc51b045da4bf40722d347c6306b2764a1c9d813 (patch) | |
| tree | 96323b3b6cd43dbbec3a74a9c09762c911e9dc32 /scene/gui/graph_edit.cpp | |
| parent | 2ec1152b0fda21f2050b30e49630659697a5e68b (diff) | |
| download | redot-engine-cc51b045da4bf40722d347c6306b2764a1c9d813.tar.gz | |
Construct values only when necessary.
Diffstat (limited to 'scene/gui/graph_edit.cpp')
| -rw-r--r-- | scene/gui/graph_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index 071b7f5bb6..bca3b2059d 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -697,7 +697,7 @@ void GraphEdit::_top_layer_input(const Ref<InputEvent> &p_ev) { } else if (!just_disconnected) { String from = connecting_from; int from_slot = connecting_index; - Vector2 ofs = Vector2(mb->get_position().x, mb->get_position().y); + Vector2 ofs = mb->get_position(); if (!connecting_out) { emit_signal(SNAME("connection_from_empty"), from, from_slot, ofs); |
