summaryrefslogtreecommitdiffstats
path: root/scene/2d/animated_sprite.cpp
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@gmail.com>2018-03-08 21:35:41 +0100
committerGilles Roudiere <gilles.roudiere@gmail.com>2018-04-03 22:04:19 +0200
commit72ed1e4244efbba7d7d66781b6fcbd2faec3273f (patch)
tree23d8c8e56fb9e6a8afe10eb14ab1056d689d7d51 /scene/2d/animated_sprite.cpp
parent6435894275ad03911f916817704d94a0e5925425 (diff)
downloadredot-engine-72ed1e4244efbba7d7d66781b6fcbd2faec3273f.tar.gz
Remove the selection rect for nodes that do not require it
Diffstat (limited to 'scene/2d/animated_sprite.cpp')
-rw-r--r--scene/2d/animated_sprite.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/animated_sprite.cpp b/scene/2d/animated_sprite.cpp
index 824f50495b..447bd9a090 100644
--- a/scene/2d/animated_sprite.cpp
+++ b/scene/2d/animated_sprite.cpp
@@ -80,6 +80,10 @@ Rect2 AnimatedSprite::_edit_get_rect() const {
return Rect2(ofs, s);
}
+bool AnimatedSprite::_edit_use_rect() const {
+ return true;
+}
+
void SpriteFrames::add_frame(const StringName &p_anim, const Ref<Texture> &p_frame, int p_at_pos) {
Map<StringName, Anim>::Element *E = animations.find(p_anim);