浏览代码

Fix TileSet shape data not updating when being set via code

Michael Alexsander 5 年之前
父节点
当前提交
151f33111b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/resources/tile_set.cpp

+ 1 - 0
scene/resources/tile_set.cpp

@@ -1038,6 +1038,7 @@ void TileSet::_tile_set_shapes(int p_id, const Array &p_shapes) {
 	}
 
 	tile_map[p_id].shapes_data = shapes_data;
+	emit_changed();
 }
 
 Array TileSet::_tile_get_shapes(int p_id) const {