aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/animated_sprite.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2018-04-13 10:21:44 -0300
committerGitHub2018-04-13 10:21:44 -0300
commit1d15c5d726600047805ab10d53ff2a7efdc41d8e (patch)
treeb2e2cbe054e4d12c5ffa1172d504a0188e09274f /scene/2d/animated_sprite.cpp
parent3a5b25d5b489ad88c2861c9c37b56469580fbf03 (diff)
parenta724f34ef30bdf362b9059634e4ef21e21101ddd (diff)
downloadgodot-1d15c5d726600047805ab10d53ff2a7efdc41d8e.tar.gz
godot-1d15c5d726600047805ab10d53ff2a7efdc41d8e.tar.zst
godot-1d15c5d726600047805ab10d53ff2a7efdc41d8e.zip
Merge pull request #17502 from groud/2Deditor_rect
Remove the rect surrounding 2D nodes in 2D editor when it's not pertinent
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 824f50495..447bd9a09 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);