Fix camera reset glitching out
This commit is contained in:
parent
fd4e3f4853
commit
ebf1c829b3
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…
x
Reference in New Issue
Block a user