summaryrefslogtreecommitdiff
path: root/scene/property_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/property_utils.cpp')
-rw-r--r--scene/property_utils.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/property_utils.cpp b/scene/property_utils.cpp
index 79821b8399..7df601492b 100644
--- a/scene/property_utils.cpp
+++ b/scene/property_utils.cpp
@@ -32,9 +32,12 @@
#include "core/config/engine.h"
#include "core/templates/local_vector.h"
-#include "editor/editor_node.h"
#include "scene/resources/packed_scene.h"
+#ifdef TOOLS_ENABLED
+#include "editor/editor_node.h"
+#endif // TOOLS_ENABLED
+
bool PropertyUtils::is_property_value_different(const Variant &p_a, const Variant &p_b) {
if (p_a.get_type() == Variant::FLOAT && p_b.get_type() == Variant::FLOAT) {
//this must be done because, as some scenes save as text, there might be a tiny difference in floats due to numerical error