Skip to content

Commit

Permalink
Merge pull request #88280 from groud/fix_tileset_duplication
Browse files Browse the repository at this point in the history
Fix TileSet sources duplication
  • Loading branch information
akien-mga committed Feb 13, 2024
2 parents e0b1e79 + 320fc73 commit aab55ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/tile_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4214,7 +4214,7 @@ void TileSet::_get_property_list(List<PropertyInfo> *p_list) const {
// Sources.
// Note: sources have to be listed in at the end as some TileData rely on the TileSet properties being initialized first.
for (const KeyValue<int, Ref<TileSetSource>> &E_source : sources) {
p_list->push_back(PropertyInfo(Variant::INT, vformat("sources/%d", E_source.key), PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR));
p_list->push_back(PropertyInfo(Variant::OBJECT, vformat("sources/%d", E_source.key), PROPERTY_HINT_RESOURCE_TYPE, "TileSetAtlasSource", PROPERTY_USAGE_NO_EDITOR | PROPERTY_USAGE_ALWAYS_DUPLICATE));
}

// Tile Proxies.
Expand Down

0 comments on commit aab55ef

Please sign in to comment.