1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Don't recalculate meshnode normals unnecessarily

This commit is contained in:
sfan5 2024-12-07 12:59:40 +01:00
parent eb6731bdc6
commit 21437090b8
4 changed files with 23 additions and 18 deletions

View file

@ -68,7 +68,7 @@ void setMeshColorByNormal(scene::IMesh *mesh, const v3f &normal,
Rotate the mesh by 6d facedir value.
Method only for meshnodes, not suitable for entities.
*/
void rotateMeshBy6dFacedir(scene::IMesh *mesh, int facedir);
void rotateMeshBy6dFacedir(scene::IMesh *mesh, u8 facedir);
/*
Rotate the mesh around the axis and given angle in degrees.