// -------------------------------------------------------------------- private void UpdatePreviewObject() { Bounds bounds = mPreview.CalculateBounds(); float scale = sModelScale / bounds.Size.Length; mPreview.Transform.LocalScale = Vector3.One * scale; mPreview.Parent = mPreviewRenderer.Scene.Root; SetTreeViewModel(mPreview); RenderPreview(); }