Skip to content

Commit

Permalink
Fixed gizmo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
donkeyProgramming committed Nov 19, 2024
1 parent dbf1206 commit 5514a3c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions GameWorld/View3D/Components/Gizmo/Gizmo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Matrix AxisMatrix
// -- Modes & Selections -- //
public GizmoAxis ActiveAxis = GizmoAxis.None;
public GizmoMode ActiveMode = GizmoMode.Translate;
public TransformSpace GizmoDisplaySpace = TransformSpace.Local;
public TransformSpace GizmoDisplaySpace = TransformSpace.World;
public TransformSpace GizmoValueSpace = TransformSpace.Local;
public PivotType ActivePivot = PivotType.SelectionCenter;

Expand Down Expand Up @@ -349,10 +349,6 @@ public void Update(GameTime gameTime, bool enableMove)

private void HandleTranslateAndScale(Vector2 mousePosition, out Vector3 out_transformLocal, out Vector3 out_transfromWorld)
{




Plane plane;
switch (ActiveAxis)
{
Expand Down Expand Up @@ -432,7 +428,6 @@ private void HandleRotation(GameTime gameTime, out Matrix out_transformLocal, ou
delta = snapped;
}


// rotation matrix to transform - if more than one objects selected, always use world-space.
var rot = Matrix.Identity;
rot.Forward = SceneWorld.Forward;
Expand Down

0 comments on commit 5514a3c

Please sign in to comment.