diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-11-19 16:17:54 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-11-19 16:17:54 -0500 |
commit | da0f1e5497c7dece9ff5092adfb5881b0dd2e10c (patch) | |
tree | 0461f21f57c2b985b7d91e490756a192491f9163 /src/nodedef.cpp | |
parent | a6ba042cf792d29cda4f7f7924a68a017d9b0335 (diff) | |
download | hax-minetest-server-da0f1e5497c7dece9ff5092adfb5881b0dd2e10c.tar.gz hax-minetest-server-da0f1e5497c7dece9ff5092adfb5881b0dd2e10c.zip |
Fix wallmounted mesh rotations
Diffstat (limited to '')
-rw-r--r-- | src/nodedef.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 7dbaaee9c..51e71a052 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -879,7 +879,7 @@ void CNodeDefManager::updateTextures(IGameDef *gamedef) meshmanip->recalculateNormals(f->mesh_ptr[j], true, false); } } else if (enable_mesh_cache && f->mesh_ptr[0] && (f->param_type_2 == CPT2_WALLMOUNTED)) { - static const u8 wm_to_6d[6] = {20, 0, 16, 12, 8, 4}; + static const u8 wm_to_6d[6] = {20, 0, 16+1, 12+3, 8, 4+2}; for (u16 j = 1; j < 6; j++) { f->mesh_ptr[j] = cloneMesh(f->mesh_ptr[0]); rotateMeshBy6dFacedir(f->mesh_ptr[j], wm_to_6d[j]); |