mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Use AncestralClass to speed up Object::cast_to when possible.
This commit is contained in:
parent
149a4b4ca1
commit
96619d46a1
15 changed files with 62 additions and 8 deletions
|
|
@ -50,6 +50,8 @@ class Control : public CanvasItem {
|
|||
#endif //TOOLS_ENABLED
|
||||
|
||||
public:
|
||||
static constexpr AncestralClass static_ancestral_class = AncestralClass::CONTROL;
|
||||
|
||||
enum Anchor {
|
||||
ANCHOR_BEGIN = 0,
|
||||
ANCHOR_END = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue