mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add Script::inherits_script()
Partial cherry-pick of 5d4dc2d45c.
Co-authored-by: Juan Linietsky <reduzio@gmail.com>
This commit is contained in:
parent
504f47eaec
commit
7426b3fa91
11 changed files with 54 additions and 0 deletions
|
|
@ -1265,6 +1265,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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue