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

Use AncestralClass to speed up Object::cast_to when possible.

This commit is contained in:
Lukas Tenbrink
2025-09-22 01:30:57 +02:00
parent 149a4b4ca1
commit 96619d46a1
15 changed files with 62 additions and 8 deletions

View File

@@ -140,6 +140,8 @@ protected:
}
public:
static constexpr AncestralClass static_ancestral_class = AncestralClass::SCRIPT;
virtual void reload_from_file() override;
virtual bool can_instantiate() const = 0;