fixed scaling bug for multi-mesh models

pull/5/head
Muhammad Al-Syrwan 2012-05-17 02:00:57 +03:00
parent 6d2857ed4a
commit 0da7005c32
1 changed files with 3 additions and 2 deletions

View File

@ -409,8 +409,9 @@ void recursive_render (const struct aiScene *sc, const struct aiNode* nd, float
unsigned int i;
unsigned int n=0, t;
aiMatrix4x4 m = nd->mTransformation;
m.Scaling(aiVector3D(scale, scale, scale), m);
aiMatrix4x4 m2;
aiMatrix4x4::Scaling(aiVector3D(scale, scale, scale), m2);
m = m * m2;
// update transform
m.Transpose();