diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-11-11 23:48:34 -0600 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-11-12 12:03:54 -0600 |
commit | 2ad3d1bd7a77f5f0318645f9c2d36a3b29bfee88 (patch) | |
tree | 4a0bd500d98018510b608c35504fc1a4d9abae2b /scene/property_utils.cpp | |
parent | aa1b13a96e6c4ef2075f1d816c90f959e66c21d5 (diff) |
Make OpenSimplex and VisualScript modules not depend on the editor
Diffstat (limited to 'scene/property_utils.cpp')
-rw-r--r-- | scene/property_utils.cpp | 5 |
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 |