mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix display_placeholder not persisting
This commit is contained in:
parent
ef34c3d534
commit
c4c39fba55
1 changed files with 3 additions and 2 deletions
|
|
@ -5880,8 +5880,9 @@ bool TileSetScenesCollectionSource::_set(const StringName &p_name, const Variant
|
|||
return true;
|
||||
} else if (components.size() >= 3 && components[2] == "display_placeholder") {
|
||||
if (!has_scene_tile_id(scene_id)) {
|
||||
create_scene_tile(p_value, scene_id);
|
||||
create_scene_tile(Ref<PackedScene>(), scene_id);
|
||||
}
|
||||
set_scene_tile_display_placeholder(scene_id, p_value);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -5898,7 +5899,7 @@ bool TileSetScenesCollectionSource::_get(const StringName &p_name, Variant &r_re
|
|||
r_ret = scenes[components[1].to_int()].scene;
|
||||
return true;
|
||||
} else if (components.size() >= 3 && components[2] == "display_placeholder") {
|
||||
r_ret = scenes[components[1].to_int()].scene;
|
||||
r_ret = scenes[components[1].to_int()].display_placeholder;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue