summaryrefslogtreecommitdiff
path: root/scene/2d/sprite.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-07 08:57:17 +0200
committerGitHub <noreply@github.com>2019-10-07 08:57:17 +0200
commitf84bf7e8a8b8ea3804b91ec6dfffcd005b9b36c5 (patch)
treea4f5ebcc8243fd36741dfedc9628a8851013cf48 /scene/2d/sprite.h
parentdcf46d311a3249950d3dd08e38827da8257906d7 (diff)
parentc7834ee5663c1169ba49445a5f9b9c4baf6b7489 (diff)
Merge pull request #32351 from nekomatata/texture-rect-size-update
Update TextureRect when its Texture is modified directly
Diffstat (limited to 'scene/2d/sprite.h')
-rw-r--r--scene/2d/sprite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/sprite.h b/scene/2d/sprite.h
index 5e6717a3f5..d3c0112e62 100644
--- a/scene/2d/sprite.h
+++ b/scene/2d/sprite.h
@@ -57,6 +57,8 @@ class Sprite : public Node2D {
void _get_rects(Rect2 &r_src_rect, Rect2 &r_dst_rect, bool &r_filter_clip) const;
+ void _texture_changed();
+
protected:
void _notification(int p_what);
@@ -64,8 +66,6 @@ protected:
virtual void _validate_property(PropertyInfo &property) const;
- virtual void _changed_callback(Object *p_changed, const char *p_prop);
-
public:
virtual Dictionary _edit_get_state() const;
virtual void _edit_set_state(const Dictionary &p_state);