Ver Fonte

Fix TileSet shape data not updating when being set via code

Michael Alexsander há 5 anos atrás
pai
commit
151f33111b
1 ficheiros alterados com 1 adições e 0 exclusões
  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;
 	tile_map[p_id].shapes_data = shapes_data;
+	emit_changed();
 }
 }
 
 
 Array TileSet::_tile_get_shapes(int p_id) const {
 Array TileSet::_tile_get_shapes(int p_id) const {