From ca7000aea800d61d4d490374bbaa9e90aacc3db7 Mon Sep 17 00:00:00 2001 From: cutealien Date: Fri, 26 Aug 2022 14:23:18 +0000 Subject: [PATCH] Fix documentation of IMeshManipulator::transform (I forgot normal update is certainly also needed on rotation) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6420 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/IMeshManipulator.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/IMeshManipulator.h b/include/IMeshManipulator.h index 67a36f9..b2a0b46 100644 --- a/include/IMeshManipulator.h +++ b/include/IMeshManipulator.h @@ -151,9 +151,9 @@ namespace scene \param m transformation matrix. \param normalsUpdate When 0 - don't update normals. When 1 - update normals with inner 3x3 matrix of the inverse transposed of the transformation matrix - should be set when the matrix has some non-uniform scaling + should be set when the matrix has rotation or non-uniform scaling \param normalizeNormals When true it normalizes all normals again. - Usually makes sense to set this as well when normalsUpdate is 1 + Recommended to set this when normalsUpdate is 1 and there is any scaling */ void transform(IMesh* mesh, const core::matrix4& m, u32 normalsUpdate = 0, bool normalizeNormals=false) const { @@ -179,9 +179,9 @@ namespace scene \param m transformation matrix. \param normalsUpdate When 0 - don't update normals. When 1 - update normals with inner 3x3 matrix of the inverse transposed of the transformation matrix - should be set when the matrix has some non-uniform scaling + should be set when the matrix has rotation or non-uniform scaling \param normalizeNormals When true it normalizes all normals again. - Usually makes sense to set this as well when normalsUpdate is 1 + Recommended to set this when normalsUpdate is 1 and there is any scaling */ void transform(IMeshBuffer* buffer, const core::matrix4& m, u32 normalsUpdate = 0, bool normalizeNormals=false) const {