mirror of
https://github.com/maker-community/ElectronBot.DotNet.git
synced 2026-10-29 13:19:30 +08:00
update ui data
This commit is contained in:
@@ -210,7 +210,7 @@ public partial class ModelLoadCompactOverlayViewModel : ObservableRecipient
|
||||
|
||||
private void FocusCameraToScene()
|
||||
{
|
||||
var maxWidth = Math.Max(Math.Max(ModelBoundingBox.Width, ModelBoundingBox.Height), ModelBoundingBox.Depth) + 80;
|
||||
var maxWidth = Math.Max(Math.Max(ModelBoundingBox.Width, ModelBoundingBox.Height), ModelBoundingBox.Depth) + 240;
|
||||
var pos = ModelBoundingBox.Center + new Vector3(0, 0, maxWidth);
|
||||
Camera.Position = pos;
|
||||
Camera.LookDirection = ModelBoundingBox.Center - pos;
|
||||
|
||||
Reference in New Issue
Block a user