tiny optimization

This commit is contained in:
eap 2012-04-18 07:24:59 +00:00
parent 3c33958e2e
commit a53a044a3f

View File

@ -523,7 +523,8 @@ bool SMDS_VolumeTool::Set (const SMDS_MeshElement* theVolume,
topNode->Z() - botNode->Z() );
myVolForward = ( botNormal.Dot( upDir ) < 0 );
myCurFace = -1; // previous setFace(0) didn't take myVolForward into account
if ( !myVolForward )
myCurFace = -1; // previous setFace(0) didn't take myVolForward into account
}
return true;
}