diff --git a/editor/js/Sidebar.Material.MapProperty.js b/editor/js/Sidebar.Material.MapProperty.js index aa236951bec330..9a6c53ea5ea1d3 100644 --- a/editor/js/Sidebar.Material.MapProperty.js +++ b/editor/js/Sidebar.Material.MapProperty.js @@ -22,6 +22,8 @@ function SidebarMaterialMapProperty( editor, property, name ) { const mapType = property.replace( 'Map', '' ); + const colorMaps = [ 'map', 'emissiveMap', 'sheenColorMap', 'specularColorMap', 'envMap' ]; + let intensity; if ( property === 'aoMap' ) { @@ -111,7 +113,7 @@ function SidebarMaterialMapProperty( editor, property, name ) { if ( texture !== null ) { - if ( texture.isDataTexture !== true && texture.colorSpace !== THREE.SRGBColorSpace ) { + if ( colorMaps[ property ] !== undefined && texture.isDataTexture !== true && texture.colorSpace !== THREE.SRGBColorSpace ) { texture.colorSpace = THREE.SRGBColorSpace; material.needsUpdate = true;