bug: the normals where transformed twice in FP_CAMERA_TRANSFORM

This commit is contained in:
Fabio Ganovelli ganovelli 2011-09-30 15:26:21 +00:00
parent 1f1986ed55
commit 3317092ecd

View File

@ -397,7 +397,6 @@ bool FilterCameraPlugin::applyFilter(QAction *filter, MeshDocument &md, RichPara
{
md.meshList[i]->cm.Tr = mat;
tri::UpdatePosition<CMeshO>::Matrix(md.meshList[i]->cm, md.meshList[i]->cm.Tr);
tri::UpdateNormals<CMeshO>::PerVertexMatrix(md.meshList[i]->cm,md.meshList[i]->cm.Tr);
tri::UpdateNormals<CMeshO>::PerFaceMatrix(md.meshList[i]->cm,md.meshList[i]->cm.Tr);
tri::UpdateBounding<CMeshO>::Box(md.meshList[i]->cm);
md.meshList[i]->cm.Tr.SetIdentity();