1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Merge pull request #107868 from lawnjelly/quick_ancestry4

Provide quick access to `Object` ancestry
This commit is contained in:
Thaddeus Crews
2025-09-20 13:41:39 -05:00
18 changed files with 86 additions and 9 deletions

View File

@@ -758,7 +758,9 @@ void Resource::_bind_methods() {
}
Resource::Resource() :
remapped_list(this) {}
remapped_list(this) {
_define_ancestry(AncestralClass::RESOURCE);
}
Resource::~Resource() {
if (unlikely(path_cache.is_empty())) {