summaryrefslogtreecommitdiff
path: root/modules/visual_script/visual_script.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-04-21 15:23:35 +0200
committerGitHub <noreply@github.com>2020-04-21 15:23:35 +0200
commit79f82bd74284a3a90177d6446449d2a69285130f (patch)
tree8b20a991315c19c23a83b37eed22ac6ec0d34597 /modules/visual_script/visual_script.cpp
parent1061cf9f6634601d7c2b17b81f8f4699ee71d670 (diff)
parent5d4dc2d45caef77cdb52e365bc02f64d54046df5 (diff)
Merge pull request #38063 from reduz/implement-typed-arrays
Add ability to bind typed arrays to script API
Diffstat (limited to 'modules/visual_script/visual_script.cpp')
-rw-r--r--modules/visual_script/visual_script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp
index 7cc52eef36..fe1d82f977 100644
--- a/modules/visual_script/visual_script.cpp
+++ b/modules/visual_script/visual_script.cpp
@@ -1460,6 +1460,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");
}