VisualScript: Adding TOOLS_ENABLED flag where needed (#6144)
Fixes #6022.
This commit is contained in:
parent
3db36684b1
commit
91ba00b416
3 changed files with 6 additions and 1 deletions
|
@ -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<VisualScriptNode>& p_node, const Point2 &p_pos) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue