You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-25 15:37:42 +00:00
Fix tile_set duplication
This commit is contained in:
@@ -4214,7 +4214,7 @@ void TileSet::_get_property_list(List<PropertyInfo> *p_list) const {
|
|||||||
// Sources.
|
// Sources.
|
||||||
// Note: sources have to be listed in at the end as some TileData rely on the TileSet properties being initialized first.
|
// 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) {
|
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.
|
// Tile Proxies.
|
||||||
|
|||||||
Reference in New Issue
Block a user