diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-12-05 01:04:25 +0100 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-12-05 01:05:18 +0100 |
commit | a648120d549566388959b824c3e901ca3a6bc11c (patch) | |
tree | 6e496b8f5ae93bc246a550d7d56cdf12a494e50f /src | |
parent | f7f7fec497f83da0d9f6ea2e83796720484033ff (diff) | |
download | minetest-a648120d549566388959b824c3e901ca3a6bc11c.tar.gz minetest-a648120d549566388959b824c3e901ca3a6bc11c.tar.bz2 minetest-a648120d549566388959b824c3e901ca3a6bc11c.zip |
Recalculate normals for mesh #0. Fix for issue #1902.
Diffstat (limited to 'src')
-rw-r--r-- | src/nodedef.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index deb08fda9..99557472e 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -854,6 +854,7 @@ void CNodeDefManager::updateTextures(IGameDef *gamedef) v3f scale = v3f(1.0, 1.0, 1.0) * BS * f->visual_scale; scaleMesh(f->mesh_ptr[0], scale); recalculateBoundingBox(f->mesh_ptr[0]); + meshmanip->recalculateNormals(f->mesh_ptr[0], true, false); } } else if ((f->drawtype == NDT_NODEBOX) && ((f->node_box.type == NODEBOX_REGULAR) || @@ -866,6 +867,7 @@ void CNodeDefManager::updateTextures(IGameDef *gamedef) v3f scale = v3f(1.0, 1.0, 1.0) * f->visual_scale; scaleMesh(f->mesh_ptr[0], scale); recalculateBoundingBox(f->mesh_ptr[0]); + meshmanip->recalculateNormals(f->mesh_ptr[0], true, false); } //Cache 6dfacedir and wallmounted rotated clones of meshes |