Skip to content

Commit

Permalink
Initial fix for #31
Browse files Browse the repository at this point in the history
This doesn't do exactly what i want it to-do but it should be a fine workaround for now
  • Loading branch information
Minmoose committed Feb 17, 2024
1 parent e3b434e commit e1b8434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Brio/UI/Windows/Specialized/PosingOverlayWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ private unsafe void DrawGizmo(PosingCapability posing, OverlayUIState uiState)
{
Position = (Vector3)charaBase->CharacterBase.DrawObject.Object.Position,
Rotation = (Quaternion)charaBase->CharacterBase.DrawObject.Object.Rotation,
Scale = (Vector3)charaBase->CharacterBase.DrawObject.Object.Scale * charaBase->ScaleFactor
Scale = Vector3.Clamp((Vector3)charaBase->CharacterBase.DrawObject.Object.Scale * charaBase->ScaleFactor, new Vector3(.5f), new Vector3(1.5f))
}.ToMatrix();
worldViewMatrix = modelMatrix * viewMatrix;
Expand Down Expand Up @@ -411,7 +411,7 @@ private unsafe void DrawGizmo(PosingCapability posing, OverlayUIState uiState)
newTransform = matrix.ToTransform();
_trackingTransform = newTransform;
}

if(ImGuizmo.Manipulate(
ref worldViewMatrix.M11,
ref projectionMatrix.M11,
Expand Down

0 comments on commit e1b8434

Please sign in to comment.