|
@@ -26,7 +26,7 @@ function ViewportControls( editor ) {
|
|
|
|
|
|
|
|
if ( object.isCamera ) {
|
|
if ( object.isCamera ) {
|
|
|
|
|
|
|
|
- update();
|
|
|
|
|
|
|
+ update( false );
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -59,7 +59,7 @@ function ViewportControls( editor ) {
|
|
|
|
|
|
|
|
//
|
|
//
|
|
|
|
|
|
|
|
- function update() {
|
|
|
|
|
|
|
+ function update( effect = true ) {
|
|
|
|
|
|
|
|
const options = {};
|
|
const options = {};
|
|
|
|
|
|
|
@@ -79,7 +79,7 @@ function ViewportControls( editor ) {
|
|
|
: editor.camera;
|
|
: editor.camera;
|
|
|
|
|
|
|
|
cameraSelect.setValue( selectedCamera.uuid );
|
|
cameraSelect.setValue( selectedCamera.uuid );
|
|
|
- editor.setViewportCamera( selectedCamera.uuid );
|
|
|
|
|
|
|
+ if ( effect ) editor.setViewportCamera( selectedCamera.uuid );
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|