diff options
| author | ShyRed <ShyRed@users.noreply.github.com> | 2018-03-10 17:01:46 +0100 |
|---|---|---|
| committer | ShyRed <ShyRed@users.noreply.github.com> | 2018-03-10 17:23:29 +0100 |
| commit | a23c0877f1bb26edb75aa344f1049a7b7a91f079 (patch) | |
| tree | a59fb710d69b989a6391affb80054f92a74e1621 /scene/2d/sprite.h | |
| parent | aeb1c67b5b55c769256a8ffc2f9d9095d6fc74da (diff) | |
| download | redot-engine-a23c0877f1bb26edb75aa344f1049a7b7a91f079.tar.gz | |
Update Sprite when Texture changes
Make Sprite monitor its Texture for changes and trigger an update when the sprite changes.
Diffstat (limited to 'scene/2d/sprite.h')
| -rw-r--r-- | scene/2d/sprite.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/sprite.h b/scene/2d/sprite.h index dd3719099f..abd04515ec 100644 --- a/scene/2d/sprite.h +++ b/scene/2d/sprite.h @@ -64,6 +64,8 @@ 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); @@ -113,6 +115,7 @@ public: Rect2 get_rect() const; Sprite(); + ~Sprite(); }; #endif // SPRITE_H |
