Add is_built_in() method to Resource
This commit is contained in:
parent
78931aa040
commit
e393c2a734
12 changed files with 28 additions and 34 deletions
|
|
@ -1475,7 +1475,7 @@ void Object::_clear_internal_resource_paths(const Variant &p_var) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!r->get_path().begins_with("res://") || r->get_path().find("::") == -1) {
|
||||
if (!r->is_built_in()) {
|
||||
return; //not an internal resource
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue