You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user