FallingBlock: Use the default material ID for generated VoxelModels

This commit is contained in:
yvt 2019-05-25 15:42:51 +09:00
parent 7147e735b7
commit f75f55f33d
No known key found for this signature in database
GPG Key ID: 48F2768FA8D07C92

View File

@ -68,6 +68,10 @@ namespace spades {
for (size_t i = 0; i < blocks.size(); i++) {
IntVector3 v = blocks[i];
uint32_t col = map->GetColor(v.x, v.y, v.z);
// Use the default material
col &= 0xffffff;
vmodel->SetSolid(v.x - minX, v.y - minY, v.z - minZ, col);
}