diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-07-03 18:06:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-03 18:06:15 +0200 |
commit | b21c1f64cdbbb762e6ede25eed1fbd1dec4b91a6 (patch) | |
tree | 25414d464c93a845c9dc1f44c0e05c7b61713b87 /scene/2d/animated_sprite.h | |
parent | 5885e1c6ddfaa90ad71ffab1923abaceeadee18d (diff) | |
parent | 4d78e16bc1bf265da32858a38aa75a1233421da4 (diff) |
Merge pull request #18634 from groud/fix_control_child_of_node2d
Fixes the bad calculation of margin & anchors when child of Node2D
Diffstat (limited to 'scene/2d/animated_sprite.h')
-rw-r--r-- | scene/2d/animated_sprite.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/animated_sprite.h b/scene/2d/animated_sprite.h index be5b1ef6d6..806052a696 100644 --- a/scene/2d/animated_sprite.h +++ b/scene/2d/animated_sprite.h @@ -145,6 +145,7 @@ class AnimatedSprite : public Node2D { void _reset_timeout(); void _set_playing(bool p_playing); bool _is_playing() const; + Rect2 _get_rect() const; protected: static void _bind_methods(); @@ -161,6 +162,8 @@ public: virtual Rect2 _edit_get_rect() const; virtual bool _edit_use_rect() const; + virtual Rect2 get_anchorable_rect() const; + void set_sprite_frames(const Ref<SpriteFrames> &p_frames); Ref<SpriteFrames> get_sprite_frames() const; |