소스 검색

Fixes TileMap editor copy bug.

(cherry picked from commit 558b08e6d91d49780c1f77812177c3c227f96590)
andybarcia 4 년 전
부모
커밋
f8a1801fbc
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      editor/plugins/tile_map_editor_plugin.cpp

+ 2 - 2
editor/plugins/tile_map_editor_plugin.cpp

@@ -972,9 +972,9 @@ void TileMapEditor::_update_copydata() {
 				tcd.flip_v = node->is_cell_y_flipped(j, i);
 				tcd.transpose = node->is_cell_transposed(j, i);
 				tcd.autotile_coord = node->get_cell_autotile_coord(j, i);
-			}
 
-			copydata.push_back(tcd);
+				copydata.push_back(tcd);
+			}
 		}
 	}
 }