CGizmo: Mark NumSelectedAxes() as const
This doesn't modify internal member state.
This commit is contained in:
parent
54f90b3b8f
commit
2d21d6af01
|
@ -189,12 +189,15 @@ bool CGizmo::CheckSelectedAxes(const CRay& rkRay)
|
||||||
return mSelectedAxes != EAxis::None;
|
return mSelectedAxes != EAxis::None;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 CGizmo::NumSelectedAxes()
|
uint32 CGizmo::NumSelectedAxes() const
|
||||||
{
|
{
|
||||||
uint32 Out = 0;
|
uint32 Out = 0;
|
||||||
|
|
||||||
for (uint32 iAxis = 1; iAxis < 8; iAxis <<= 1)
|
for (uint32 iAxis = 1; iAxis < 8; iAxis <<= 1)
|
||||||
if (mSelectedAxes & FAxes(iAxis)) Out++;
|
{
|
||||||
|
if (mSelectedAxes & FAxes(iAxis))
|
||||||
|
Out++;
|
||||||
|
}
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,7 +123,7 @@ public:
|
||||||
void DecrementSize();
|
void DecrementSize();
|
||||||
void UpdateForCamera(const CCamera& rkCamera);
|
void UpdateForCamera(const CCamera& rkCamera);
|
||||||
bool CheckSelectedAxes(const CRay& rkRay);
|
bool CheckSelectedAxes(const CRay& rkRay);
|
||||||
uint32 NumSelectedAxes();
|
uint32 NumSelectedAxes() const;
|
||||||
void ResetSelectedAxes();
|
void ResetSelectedAxes();
|
||||||
void StartTransform();
|
void StartTransform();
|
||||||
bool TransformFromInput(const CRay& rkRay, CCamera& rkCamera);
|
bool TransformFromInput(const CRay& rkRay, CCamera& rkCamera);
|
||||||
|
|
Loading…
Reference in New Issue