Merge pull request #110763 from Ivorforce/object-derives-from

Use `AncestralClass` to speed up `Object::cast_to` when possible.
This commit is contained in:
Thaddeus Crews 2025-09-22 13:28:45 -05:00
commit 035f5d3055
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
15 changed files with 62 additions and 8 deletions

View file

@ -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