mirror of
https://github.com/Relintai/props.git
synced 2024-11-14 10:17:30 +01:00
Fail if tiled_wall_data is not valid, and also copy the new tiling type property.
This commit is contained in:
parent
b057e8d9af
commit
b95ebbda75
@ -149,6 +149,10 @@ void TiledWallData::add_textures_into(Ref<TexturePacker> texture_packer) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void TiledWallData::copy_from(const Ref<TiledWallData> &tiled_wall_data) {
|
void TiledWallData::copy_from(const Ref<TiledWallData> &tiled_wall_data) {
|
||||||
|
ERR_FAIL_COND(!tiled_wall_data.is_valid());
|
||||||
|
|
||||||
|
_tiling_type = tiled_wall_data->_tiling_type;
|
||||||
|
|
||||||
_textures.clear();
|
_textures.clear();
|
||||||
|
|
||||||
for (int i = 0; i < tiled_wall_data->_textures.size(); ++i) {
|
for (int i = 0; i < tiled_wall_data->_textures.size(); ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user