Fix #445 by NOT replacing empty backups

This commit is contained in:
Manolis Papadeas 2021-01-30 20:33:00 +02:00
parent 499251f44a
commit 5b3b91b247
2 changed files with 7 additions and 3 deletions

View file

@ -580,3 +580,7 @@ func update_tile_mode_rects() -> void:
tile_mode_rects[Global.TileMode.BOTH] = Rect2(Vector2(-1, -1) * size, Vector2(3, 3) * size)
tile_mode_rects[Global.TileMode.X_AXIS] = Rect2(Vector2(-1, 0) * size, Vector2(3, 1) * size)
tile_mode_rects[Global.TileMode.Y_AXIS] = Rect2(Vector2(0, -1) * size, Vector2(1, 3) * size)
func is_empty() -> bool:
return frames.size() == 1 and layers.size() == 1 and frames[0].cels[0].image.is_invisible() and animation_tags.size() == 0