File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,9 @@ function reloadEars(skipSkinReload = false): void {
130130
131131function reloadPanorama ( ) : void {
132132 const input = document . getElementById ( "panorama_url" ) as HTMLInputElement ;
133+ const backgroundTypeInput = document . getElementById ( "background_type" ) as HTMLSelectElement ;
133134 const url = obtainTextureUrl ( "panorama_url" ) ;
135+ backgroundTypeInput . value = "panorama" ;
134136 if ( url === "" ) {
135137 skinViewer . background = null ;
136138 input ?. setCustomValidity ( "" ) ;
@@ -439,7 +441,10 @@ function initializeControls(): void {
439441 const backgroundColor = document . getElementById ( "background_color" ) as HTMLInputElement ;
440442
441443 backgroundType ?. addEventListener ( "change" , updateBackground ) ;
442- backgroundColor ?. addEventListener ( "change" , updateBackground ) ;
444+ backgroundColor ?. addEventListener ( "change" , ( ) => {
445+ backgroundType . value = "color" ;
446+ updateBackground ( ) ;
447+ } ) ;
443448
444449 // Set panorama as default
445450 if ( backgroundType ) {
You can’t perform that action at this time.
0 commit comments