mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +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.
|
@ -49,8 +49,7 @@ namespace Switch_Toolbox.Library.Forms
|
|||
treeViewCustom1.BeginUpdate(); // No visual updates until we say
|
||||
// if (ClearAllNodes)
|
||||
// ClearNodes();
|
||||
|
||||
|
||||
|
||||
treeViewCustom1.EndUpdate(); // Allow the treeview to update visually
|
||||
});
|
||||
|
||||
|
|
|
@ -293,7 +293,7 @@ namespace Switch_Toolbox.Library
|
|||
GL_ControlLegacy.CamRotX = 0;
|
||||
GL_ControlLegacy.CamRotY = 0;
|
||||
GL_ControlLegacy.CameraTarget = new OpenTK.Vector3(0);
|
||||
GL_ControlLegacy.CameraDistance = -10f;
|
||||
GL_ControlLegacy.CameraDistance = 10f;
|
||||
GL_ControlLegacy.Refresh();
|
||||
}
|
||||
else
|
||||
|
@ -301,7 +301,7 @@ namespace Switch_Toolbox.Library
|
|||
GL_ControlModern.CamRotX = 0;
|
||||
GL_ControlModern.CamRotY = 0;
|
||||
GL_ControlModern.CameraTarget = new OpenTK.Vector3(0);
|
||||
GL_ControlModern.CameraDistance = -10f;
|
||||
GL_ControlModern.CameraDistance = 10f;
|
||||
GL_ControlModern.Refresh();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue