diff options
author | kobewi <kobewi4e@gmail.com> | 2021-07-10 21:17:41 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-11-04 12:45:58 +0100 |
commit | e393c2a7348d96587e15af17c72ebeff719d4be3 (patch) | |
tree | a31a5913139f9e56d3324452dc908ab96a4f7967 /core/object | |
parent | 78931aa040bb0d0586345f95cc982605c0720ba1 (diff) |
Add is_built_in() method to Resource
Diffstat (limited to 'core/object')
-rw-r--r-- | core/object/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp index 476fdec1f7..498f116997 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -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 } |