浏览代码

Fixes TileMap editor copy bug.

andybarcia 4 年之前
父节点
当前提交
558b08e6d9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/plugins/tile_map_editor_plugin.cpp

+ 2 - 2
editor/plugins/tile_map_editor_plugin.cpp

@@ -966,9 +966,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);
+			}
 		}
 	}
 }