Fix camera reset glitching out

This commit is contained in:
KillzXGaming 2019-05-01 15:47:09 -04:00
parent fd4e3f4853
commit ebf1c829b3
3 changed files with 3 additions and 4 deletions

Binary file not shown.

View file

@ -50,7 +50,6 @@ namespace Switch_Toolbox.Library.Forms
// if (ClearAllNodes)
// ClearNodes();
treeViewCustom1.EndUpdate(); // Allow the treeview to update visually
});

View file

@ -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();
}
}