We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5b2dba commit a97401bCopy full SHA for a97401b
editor/js/Viewport.Controls.js
@@ -26,7 +26,7 @@ function ViewportControls( editor ) {
26
27
if ( object.isCamera ) {
28
29
- update( false );
+ updateCameraList();
30
31
}
32
@@ -59,7 +59,7 @@ function ViewportControls( editor ) {
59
60
//
61
62
- function update( effect = true ) {
+ function updateCameraList() {
63
64
const options = {};
65
@@ -79,7 +79,15 @@ function ViewportControls( editor ) {
79
: editor.camera;
80
81
cameraSelect.setValue( selectedCamera.uuid );
82
- if ( effect ) editor.setViewportCamera( selectedCamera.uuid );
+
83
+ return selectedCamera;
84
85
+ }
86
87
+ function update() {
88
89
+ const selectedCamera = updateCameraList();
90
+ editor.setViewportCamera( selectedCamera.uuid );
91
92
93
0 commit comments