summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2024-02-13 14:44:17 +0100
committerGilles Roudière <gilles.roudiere@gmail.com>2024-02-13 14:44:17 +0100
commit320fc736473b3d34bf6a5b3cf3b75c00f0741ec2 (patch)
tree08edb7739417f2232a2c628fedbcde459137d87a
parentdfe226b93346c208787728eceecc2c64d81a9553 (diff)
downloadredot-engine-320fc736473b3d34bf6a5b3cf3b75c00f0741ec2.tar.gz
Fix tile_set duplication
-rw-r--r--scene/resources/tile_set.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp
index 96891f2480..7e08d727ac 100644
--- a/scene/resources/tile_set.cpp
+++ b/scene/resources/tile_set.cpp
@@ -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.