Skip to content
Snippets Groups Projects
Commit a648120d authored by RealBadAngel's avatar RealBadAngel
Browse files

Recalculate normals for mesh #0. Fix for issue #1902.

parent f7f7fec4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment