mirror of
https://github.com/godotengine/godot.git
synced 2026-06-27 19:32:29 +00:00
Deprecate ScriptLanguage::instance_has
This commit is contained in:
parent
1aabcb9e9b
commit
97091c639b
11 changed files with 38 additions and 23 deletions
|
|
@ -435,15 +435,6 @@ PlaceHolderScriptInstance *GDScript::placeholder_instance_create(Object *p_this)
|
|||
#endif
|
||||
}
|
||||
|
||||
bool GDScript::instance_has(const Object *p_this) const {
|
||||
GDScriptInstance *instance = dynamic_cast<GDScriptInstance *>(p_this->get_script_instance());
|
||||
|
||||
if (instance == nullptr) {
|
||||
return false;
|
||||
}
|
||||
return instance->script.ptr() == this;
|
||||
}
|
||||
|
||||
bool GDScript::has_source_code() const {
|
||||
return !source.is_empty();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue