diff --git a/src/Editor/CGizmo.cpp b/src/Editor/CGizmo.cpp index 99a15791..367e9943 100644 --- a/src/Editor/CGizmo.cpp +++ b/src/Editor/CGizmo.cpp @@ -189,12 +189,15 @@ bool CGizmo::CheckSelectedAxes(const CRay& rkRay) return mSelectedAxes != EAxis::None; } -uint32 CGizmo::NumSelectedAxes() +uint32 CGizmo::NumSelectedAxes() const { uint32 Out = 0; for (uint32 iAxis = 1; iAxis < 8; iAxis <<= 1) - if (mSelectedAxes & FAxes(iAxis)) Out++; + { + if (mSelectedAxes & FAxes(iAxis)) + Out++; + } return Out; } diff --git a/src/Editor/CGizmo.h b/src/Editor/CGizmo.h index 5ee5a477..209fe434 100644 --- a/src/Editor/CGizmo.h +++ b/src/Editor/CGizmo.h @@ -123,7 +123,7 @@ public: void DecrementSize(); void UpdateForCamera(const CCamera& rkCamera); bool CheckSelectedAxes(const CRay& rkRay); - uint32 NumSelectedAxes(); + uint32 NumSelectedAxes() const; void ResetSelectedAxes(); void StartTransform(); bool TransformFromInput(const CRay& rkRay, CCamera& rkCamera);