mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-02 19:26:03 +00:00
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user