Просмотр исходного кода

Fix AnimationEditor ignoring region of Sprite2D

Salia Nifo 2 лет назад
Родитель
Сommit
3154872177
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      editor/animation_track_editor_plugins.cpp

+ 2 - 2
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"));
 		}