|
@@ -6,11 +6,11 @@ function ViewportCamera( editor ) {
|
|
|
|
|
|
//
|
|
|
|
|
|
- const cameraSelect = new UISelect();
|
|
|
- cameraSelect.setPosition( 'absolute' );
|
|
|
- cameraSelect.setRight( '10px' );
|
|
|
- cameraSelect.setTop( '10px' );
|
|
|
- cameraSelect.onChange( function () {
|
|
|
+ const select = new UISelect();
|
|
|
+ select.setPosition( 'absolute' );
|
|
|
+ select.setRight( '10px' );
|
|
|
+ select.setTop( '10px' );
|
|
|
+ select.onChange( function () {
|
|
|
|
|
|
editor.setViewportCamera( this.getValue() );
|
|
|
|
|
@@ -36,12 +36,12 @@ function ViewportCamera( editor ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- cameraSelect.setOptions( options );
|
|
|
- cameraSelect.setValue( editor.viewportCamera.uuid );
|
|
|
+ select.setOptions( options );
|
|
|
+ select.setValue( editor.viewportCamera.uuid );
|
|
|
|
|
|
}
|
|
|
|
|
|
- return cameraSelect;
|
|
|
+ return select;
|
|
|
|
|
|
}
|
|
|
|