update ui data

This commit is contained in:
gil zhang
2023-05-28 20:16:09 +08:00
parent 8ded279ab2
commit e3e4382221
2 changed files with 6 additions and 5 deletions
@@ -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;