Explorar el Código

EXRLoader: Support stringvectors in header.

Mr.doob hace 5 años
padre
commit
296874152c
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      examples/js/loaders/EXRLoader.js
  2. 1 1
      examples/jsm/loaders/EXRLoader.js

+ 1 - 1
examples/js/loaders/EXRLoader.js

@@ -1125,7 +1125,7 @@ THREE.EXRLoader.prototype = Object.assign( Object.create( THREE.DataTextureLoade
 
 		function parseValue( dataView, buffer, offset, type, size ) {
 
-			if ( type === 'string' || type === 'iccProfile' ) {
+			if ( type === 'string' || type === 'stringvector' || type === 'iccProfile' ) {
 
 				return parseFixedLengthString( buffer, offset, size );
 

+ 1 - 1
examples/jsm/loaders/EXRLoader.js

@@ -1136,7 +1136,7 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
 
 		function parseValue( dataView, buffer, offset, type, size ) {
 
-			if ( type === 'string' || type === 'iccProfile' ) {
+			if ( type === 'string' || type === 'stringvector' || type === 'iccProfile' ) {
 
 				return parseFixedLengthString( buffer, offset, size );