mirror of
https://github.com/godotengine/godot.git
synced 2025-02-23 23:15:07 +08:00
Merge pull request #72812 from salianifo/master
Fix AnimationEditor ignoring region of Sprite2D
This commit is contained in:
commit
6a58f4e305
@ -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"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user