mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-13 00:17:30 +00:00
Fix camera reset glitching out
This commit is contained in:
parent
fd4e3f4853
commit
ebf1c829b3
3 changed files with 3 additions and 4 deletions
Binary file not shown.
|
@ -50,7 +50,6 @@ namespace Switch_Toolbox.Library.Forms
|
||||||
// if (ClearAllNodes)
|
// if (ClearAllNodes)
|
||||||
// ClearNodes();
|
// ClearNodes();
|
||||||
|
|
||||||
|
|
||||||
treeViewCustom1.EndUpdate(); // Allow the treeview to update visually
|
treeViewCustom1.EndUpdate(); // Allow the treeview to update visually
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -293,7 +293,7 @@ namespace Switch_Toolbox.Library
|
||||||
GL_ControlLegacy.CamRotX = 0;
|
GL_ControlLegacy.CamRotX = 0;
|
||||||
GL_ControlLegacy.CamRotY = 0;
|
GL_ControlLegacy.CamRotY = 0;
|
||||||
GL_ControlLegacy.CameraTarget = new OpenTK.Vector3(0);
|
GL_ControlLegacy.CameraTarget = new OpenTK.Vector3(0);
|
||||||
GL_ControlLegacy.CameraDistance = -10f;
|
GL_ControlLegacy.CameraDistance = 10f;
|
||||||
GL_ControlLegacy.Refresh();
|
GL_ControlLegacy.Refresh();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -301,7 +301,7 @@ namespace Switch_Toolbox.Library
|
||||||
GL_ControlModern.CamRotX = 0;
|
GL_ControlModern.CamRotX = 0;
|
||||||
GL_ControlModern.CamRotY = 0;
|
GL_ControlModern.CamRotY = 0;
|
||||||
GL_ControlModern.CameraTarget = new OpenTK.Vector3(0);
|
GL_ControlModern.CameraTarget = new OpenTK.Vector3(0);
|
||||||
GL_ControlModern.CameraDistance = -10f;
|
GL_ControlModern.CameraDistance = 10f;
|
||||||
GL_ControlModern.Refresh();
|
GL_ControlModern.Refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue