summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-06 23:36:15 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-06 23:36:15 +0100
commit6a58f4e305bc013199a2a7631775fb084d3c1510 (patch)
tree20d9c4af15ede4ff0496480cc04efe5d185ddf85
parentf39eb330e9d519e8b8bfe0ae3a6c7c88524265fa (diff)
parent3154872177ff217b0c02f317f390b14d9f04241c (diff)
Merge pull request #72812 from salianifo/master
Fix AnimationEditor ignoring region of Sprite2D
-rw-r--r--editor/animation_track_editor_plugins.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_track_editor_plugins.cpp b/editor/animation_track_editor_plugins.cpp
index ba73a63245..2895aa9710 100644
--- a/editor/animation_track_editor_plugins.cpp
+++ b/editor/animation_track_editor_plugins.cpp
@@ -389,7 +389,7 @@ Rect2 AnimationTrackEditSpriteFrame::get_key_rect(int p_index, float p_pixels_se
size = texture->get_size();
- if (bool(object->call("is_region"))) {
+ if (bool(object->call("is_region_enabled"))) {
size = Rect2(object->call("get_region_rect")).size;
}
@@ -479,7 +479,7 @@ void AnimationTrackEditSpriteFrame::draw_key(int p_index, float p_pixels_sec, in
region.size = texture->get_size();
- if (bool(object->call("is_region"))) {
+ if (bool(object->call("is_region_enabled"))) {
region = Rect2(object->call("get_region_rect"));
}