diff options
| author | Will Nations <willnationsdev@gmail.com> | 2018-02-16 11:58:27 -0600 |
|---|---|---|
| committer | Will Nations <willnationsdev@gmail.com> | 2018-02-19 16:45:11 -0600 |
| commit | b0bdb4456b3e1cc989dab1c8f23389ec0bdf425d (patch) | |
| tree | 031840c86da9a08dd3e0833743340617cb014d81 /scene/2d/sprite.h | |
| parent | da612c324cec8c4f6bfcef9b35406ea215e699f6 (diff) | |
| download | redot-engine-b0bdb4456b3e1cc989dab1c8f23389ec0bdf425d.tar.gz | |
Expose Sprite._edit_get_rect for click rect access
Diffstat (limited to 'scene/2d/sprite.h')
| -rw-r--r-- | scene/2d/sprite.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/2d/sprite.h b/scene/2d/sprite.h index 261165bbf9..a5bfbabc57 100644 --- a/scene/2d/sprite.h +++ b/scene/2d/sprite.h @@ -69,7 +69,7 @@ public: virtual Point2 _edit_get_pivot() const; virtual bool _edit_use_pivot() const; virtual bool _edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const; - virtual Rect2 _edit_get_rect() const; + virtual Rect2 _edit_get_rect() const { return get_rect(); } void set_texture(const Ref<Texture> &p_texture); Ref<Texture> get_texture() const; @@ -107,6 +107,8 @@ public: void set_hframes(int p_amount); int get_hframes() const; + Rect2 get_rect() const; + Sprite(); }; |
