mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 21:47:45 +00:00
Change CTransform4f to inherit from CMatrix4f
This commit is contained in:
@@ -74,11 +74,11 @@ void CGizmo::Draw(FRenderOptions /*Options*/, int ComponentIndex, const SViewInf
|
||||
|
||||
// Set model matrix
|
||||
if (pPart[ComponentIndex].IsBillboard)
|
||||
CGraphics::sMVPBlock.ModelMatrix = mBillboardTransform.ToMatrix4f();
|
||||
CGraphics::sMVPBlock.ModelMatrix = mBillboardTransform;
|
||||
else if ((mMode == eScale) && ((mSelectedAxes & pPart[ComponentIndex].ModelAxes) != 0))
|
||||
CGraphics::sMVPBlock.ModelMatrix = mScaledTransform.ToMatrix4f();
|
||||
CGraphics::sMVPBlock.ModelMatrix = mScaledTransform;
|
||||
else
|
||||
CGraphics::sMVPBlock.ModelMatrix = mTransform.ToMatrix4f();
|
||||
CGraphics::sMVPBlock.ModelMatrix = mTransform;
|
||||
|
||||
CGraphics::UpdateMVPBlock();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user