summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_edit.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2019-01-16 10:42:53 -0500
committerAaron Franke <arnfranke@yahoo.com>2019-04-25 13:20:29 -0400
commitb659e1eb2b732ebc836614735438ca0bcdc8a32d (patch)
treefdc9e58e4e573c08eb9004650476e43bc66a0e43 /scene/gui/graph_edit.cpp
parentc577ec6ae46f8c6d848cae46c0e447e6607b3f33 (diff)
downloadredot-engine-b659e1eb2b732ebc836614735438ca0bcdc8a32d.tar.gz
Use approximate equallity methods in many places
Diffstat (limited to 'scene/gui/graph_edit.cpp')
-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 30ad81bb2e..dabff08fea 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -1053,7 +1053,7 @@ void GraphEdit::set_connection_activity(const StringName &p_from, int p_from_por
if (E->get().from == p_from && E->get().from_port == p_from_port && E->get().to == p_to && E->get().to_port == p_to_port) {
- if (ABS(E->get().activity - p_activity) < CMP_EPSILON) {
+ if (Math::is_equal_approx(E->get().activity, p_activity)) {
//update only if changed
top_layer->update();
connections_layer->update();