diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index 425436d907b..91219679dba 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -281,9 +281,10 @@ void VisualScript::_node_ports_changed(int p_id) { } } +#ifdef TOOLS_ENABLED set_edited(true); //something changed, let's set as edited emit_signal("node_ports_changed",function,p_id); - +#endif } void VisualScript::add_node(const StringName& p_func,int p_id, const Ref& p_node, const Point2 &p_pos) { diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index 0d97126e0aa..412865fbfe7 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -6,6 +6,7 @@ #include "os/input.h" #include "os/keyboard.h" +#ifdef TOOLS_ENABLED class VisualScriptEditorSignalEdit : public Object { OBJ_TYPE(VisualScriptEditorSignalEdit,Object) @@ -2620,3 +2621,4 @@ void VisualScriptEditor::register_editor() { } +#endif diff --git a/modules/visual_script/visual_script_editor.h b/modules/visual_script/visual_script_editor.h index bd33f357392..252519913d0 100644 --- a/modules/visual_script/visual_script_editor.h +++ b/modules/visual_script/visual_script_editor.h @@ -11,6 +11,7 @@ class VisualScriptEditorSignalEdit; class VisualScriptEditorVariableEdit; +#ifdef TOOLS_ENABLED class VisualScriptEditor : public ScriptEditorBase { OBJ_TYPE(VisualScriptEditor,ScriptEditorBase) @@ -180,5 +181,6 @@ public: VisualScriptEditor(); ~VisualScriptEditor(); }; +#endif #endif // VisualSCRIPT_EDITOR_H