Make OpenSimplex and VisualScript modules not depend on the editor

This commit is contained in:
Aaron Franke
2021-11-11 23:48:34 -06:00
parent aa1b13a96e
commit 2ad3d1bd7a
9 changed files with 20 additions and 16 deletions

View File

@@ -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