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

Provide quick access to Object ancestry

This commit is contained in:
lawnjelly
2025-06-22 23:08:23 +01:00
parent d7bdc0be16
commit 14a814586a
18 changed files with 86 additions and 9 deletions

View File

@@ -752,7 +752,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())) {