forked from Mirrorlandia_minetest/minetest
Fix texture hack in fences.
This commit is contained in:
parent
d38f6ebb9b
commit
61088b16c9
@ -1144,14 +1144,9 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||||||
TileSpec tile_nocrack = tile;
|
TileSpec tile_nocrack = tile;
|
||||||
tile_nocrack.material_flags &= ~MATERIAL_FLAG_CRACK;
|
tile_nocrack.material_flags &= ~MATERIAL_FLAG_CRACK;
|
||||||
|
|
||||||
// A hack to put wood the right way around in the posts
|
// Put wood the right way around in the posts
|
||||||
ITextureSource *tsrc = data->m_gamedef->tsrc();
|
|
||||||
std::string texturestring_rot = tsrc->getTextureName(
|
|
||||||
tile.texture_id) + "^[transformR90";
|
|
||||||
TileSpec tile_rot = tile;
|
TileSpec tile_rot = tile;
|
||||||
tile_rot.texture = tsrc->getTexture(
|
tile_rot.rotation = 1;
|
||||||
texturestring_rot,
|
|
||||||
&tile_rot.texture_id);
|
|
||||||
|
|
||||||
u16 l = getInteriorLight(n, 1, nodedef);
|
u16 l = getInteriorLight(n, 1, nodedef);
|
||||||
video::SColor c = MapBlock_LightColor(255, l, decode_light(f.light_source));
|
video::SColor c = MapBlock_LightColor(255, l, decode_light(f.light_source));
|
||||||
|
Loading…
Reference in New Issue
Block a user