Skip to content

Commit

Permalink
Лишнее
Browse files Browse the repository at this point in the history
  • Loading branch information
VaIeroK committed Nov 16, 2022
1 parent 5726743 commit 417a5b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions OGF tool/Classes/OGF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ public class OGF_Model

public float[] local_offset;
public float[] local_rotation;
public bool rotation_local;

public OGF_Model()
{
Expand All @@ -321,7 +320,6 @@ public OGF_Model()

local_offset = new float[3];
local_rotation = new float[3];
rotation_local = false;
}

public bool IsProgressive()
Expand Down
5 changes: 2 additions & 3 deletions OGF tool/Forms/OgfEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1983,9 +1983,8 @@ private void moveRotateModelToolStripMenuItem_Click(object sender, EventArgs e)

float[] old_offs = OGF_V.local_offset;
float[] old_rot = OGF_V.local_rotation;
bool old_rot_flag = OGF_V.rotation_local;

MoveMesh moveMesh = new MoveMesh(old_offs, old_rot, old_rot_flag, false);
MoveMesh moveMesh = new MoveMesh(old_offs, old_rot, false, false);
moveMesh.ShowDialog();

if (moveMesh.res)
Expand All @@ -2000,7 +1999,7 @@ private void moveRotateModelToolStripMenuItem_Click(object sender, EventArgs e)
}
}

if (!FVec.Similar(old_offs, OGF_V.local_offset) || !FVec.Similar(old_rot, OGF_V.local_rotation) || old_rot_flag != OGF_V.rotation_local)
if (!FVec.Similar(old_offs, OGF_V.local_offset) || !FVec.Similar(old_rot, OGF_V.local_rotation))
{
RecalcBBox(true);
ReloadViewPort(true, false, true);
Expand Down

0 comments on commit 417a5b7

Please sign in to comment.