mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Don't recalculate meshnode normals unnecessarily
This commit is contained in:
parent
eb6731bdc6
commit
21437090b8
4 changed files with 23 additions and 18 deletions
|
@ -272,9 +272,9 @@ void rotateMeshYZby(scene::IMesh *mesh, f64 degrees)
|
|||
rotateMesh<&v3f::Y, &v3f::Z>(mesh, degrees);
|
||||
}
|
||||
|
||||
void rotateMeshBy6dFacedir(scene::IMesh *mesh, int facedir)
|
||||
void rotateMeshBy6dFacedir(scene::IMesh *mesh, u8 facedir)
|
||||
{
|
||||
int axisdir = facedir >> 2;
|
||||
u8 axisdir = facedir >> 2;
|
||||
facedir &= 0x03;
|
||||
switch (facedir) {
|
||||
case 1: rotateMeshXZby(mesh, -90); break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue