mirror of
https://github.com/godotengine/godot-visual-script.git
synced 2026-01-05 22:10:23 +03:00
Merge pull request #51166 from RandomShaper/fix_can_reset_3.x
This commit is contained in:
@@ -1266,6 +1266,10 @@ VisualScript::VisualScript() {
|
||||
is_tool_script = false;
|
||||
}
|
||||
|
||||
bool VisualScript::inherits_script(const Ref<Script> &p_script) const {
|
||||
return this == p_script.ptr(); //there is no inheritance in visual scripts, so this is enough
|
||||
}
|
||||
|
||||
StringName VisualScript::get_default_func() const {
|
||||
return StringName("f_312843592");
|
||||
}
|
||||
|
||||
@@ -260,6 +260,8 @@ protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
bool inherits_script(const Ref<Script> &p_script) const;
|
||||
|
||||
// TODO: Remove it in future when breaking changes are acceptable
|
||||
StringName get_default_func() const;
|
||||
void add_function(const StringName &p_name);
|
||||
|
||||
Reference in New Issue
Block a user