Browse Source

Editor: Do not enforce sRGB encoding for DataTexture.

Mugen87 5 years ago
parent
commit
c8c9033a49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/js/Sidebar.Material.js

+ 1 - 1
editor/js/Sidebar.Material.js

@@ -1186,7 +1186,7 @@ function SidebarMaterial( editor ) {
 
 
 		if ( texture !== null ) {
 		if ( texture !== null ) {
 
 
-			if ( texture.encoding !== THREE.sRGBEncoding ) {
+			if ( texture.isDataTexture !== true && texture.encoding !== THREE.sRGBEncoding ) {
 
 
 				texture.encoding = THREE.sRGBEncoding;
 				texture.encoding = THREE.sRGBEncoding;
 				var object = currentObject;
 				var object = currentObject;