VisualScript: Adding TOOLS_ENABLED flag where needed (#6144)

Fixes #6022.
This commit is contained in:
vkbsb 2016-08-15 13:24:02 +05:30 committed by Rémi Verschelde
parent 3db36684b1
commit 91ba00b416
3 changed files with 6 additions and 1 deletions

View file

@ -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 set_edited(true); //something changed, let's set as edited
emit_signal("node_ports_changed",function,p_id); emit_signal("node_ports_changed",function,p_id);
#endif
} }
void VisualScript::add_node(const StringName& p_func,int p_id, const Ref<VisualScriptNode>& p_node, const Point2 &p_pos) { void VisualScript::add_node(const StringName& p_func,int p_id, const Ref<VisualScriptNode>& p_node, const Point2 &p_pos) {

View file

@ -6,6 +6,7 @@
#include "os/input.h" #include "os/input.h"
#include "os/keyboard.h" #include "os/keyboard.h"
#ifdef TOOLS_ENABLED
class VisualScriptEditorSignalEdit : public Object { class VisualScriptEditorSignalEdit : public Object {
OBJ_TYPE(VisualScriptEditorSignalEdit,Object) OBJ_TYPE(VisualScriptEditorSignalEdit,Object)
@ -2620,3 +2621,4 @@ void VisualScriptEditor::register_editor() {
} }
#endif

View file

@ -11,6 +11,7 @@ class VisualScriptEditorSignalEdit;
class VisualScriptEditorVariableEdit; class VisualScriptEditorVariableEdit;
#ifdef TOOLS_ENABLED
class VisualScriptEditor : public ScriptEditorBase { class VisualScriptEditor : public ScriptEditorBase {
OBJ_TYPE(VisualScriptEditor,ScriptEditorBase) OBJ_TYPE(VisualScriptEditor,ScriptEditorBase)
@ -180,5 +181,6 @@ public:
VisualScriptEditor(); VisualScriptEditor();
~VisualScriptEditor(); ~VisualScriptEditor();
}; };
#endif
#endif // VisualSCRIPT_EDITOR_H #endif // VisualSCRIPT_EDITOR_H