关闭真实视觉样式下的旋转相机隐藏图元功能

pull/645/head
ChenX 5 years ago
parent d3b8b1f159
commit a5005de98b

@ -19,6 +19,7 @@ import { CameraUpdate } from './CameraUpdate';
import { GripScene } from './GripScene'; import { GripScene } from './GripScene';
import { OutlinePass } from './OutlinePass'; import { OutlinePass } from './OutlinePass';
import { PreViewer } from './PreViewer'; import { PreViewer } from './PreViewer';
import { RenderType } from './RenderType';
export enum AAType export enum AAType
{ {
@ -321,7 +322,7 @@ export class Viewer
IsLookSelect = false; IsLookSelect = false;
StartRotate() StartRotate()
{ {
if (this.OutlinePass.selectedObjects.length > 0) if (this.OutlinePass.selectedObjects.length > 0 && userConfig.RenderType !== RenderType.Physical)
{ {
[this.OutlinePass.selectedObjects, this.Scene.children] = [this.Scene.children, this.OutlinePass.selectedObjects]; [this.OutlinePass.selectedObjects, this.Scene.children] = [this.Scene.children, this.OutlinePass.selectedObjects];
this.UsePass = false; this.UsePass = false;

Loading…
Cancel
Save