diff options
author | Salia Nifo <salianifo@live.ca> | 2023-02-06 16:24:03 -0500 |
---|---|---|
committer | Salia Nifo <salianifo@live.ca> | 2023-02-06 16:56:11 -0500 |
commit | 3154872177ff217b0c02f317f390b14d9f04241c (patch) | |
tree | bd470f40d02f2e7e5ae94628b3ba509f7baec975 /editor/animation_track_editor_plugins.cpp | |
parent | 945207885b3cd97012215334e56fcd3139d25e9f (diff) | |
download | redot-engine-3154872177ff217b0c02f317f390b14d9f04241c.tar.gz |
Fix AnimationEditor ignoring region of Sprite2D
Diffstat (limited to 'editor/animation_track_editor_plugins.cpp')
-rw-r--r-- | editor/animation_track_editor_plugins.cpp | 4 |
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")); } |