mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
fix: block fields not inherited
This commit is contained in:
parent
349e61a3f9
commit
7d0f714cf2
1 changed files with 3 additions and 0 deletions
|
|
@ -167,6 +167,9 @@ void Block::cloneTo(Block& dst) {
|
||||||
dst.translucent = translucent;
|
dst.translucent = translucent;
|
||||||
dst.explictlySolid = explictlySolid;
|
dst.explictlySolid = explictlySolid;
|
||||||
dst.tags = tags;
|
dst.tags = tags;
|
||||||
|
if (dataStruct) {
|
||||||
|
dst.dataStruct = std::make_unique<data::StructLayout>(*dataStruct);
|
||||||
|
}
|
||||||
if (particles) {
|
if (particles) {
|
||||||
dst.particles = std::make_unique<ParticlesPreset>(*particles);
|
dst.particles = std::make_unique<ParticlesPreset>(*particles);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue