Make `doNormalize` true by default for CUnitVector3f

This commit is contained in:
Jack Andersen 2017-03-09 17:39:58 -10:00
parent 11ba10b557
commit 5e008737e0
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ public:
CUnitVector3f() : CVector3f(0, 1, 0) {}
CUnitVector3f(float x, float y, float z) : CVector3f(x, y, z) {}
CUnitVector3f(const CVector3f& vec, bool doNormalize = false) : CVector3f(vec)
CUnitVector3f(const CVector3f& vec, bool doNormalize = true) : CVector3f(vec)
{
if (doNormalize && canBeNormalized())
normalize();