Selaa lähdekoodia

EXRLoader: Support stringvectors in header.

Mr.doob 5 vuotta sitten
vanhempi
commit
296874152c
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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 ) {
 		function parseValue( dataView, buffer, offset, type, size ) {
 
 
-			if ( type === 'string' || type === 'iccProfile' ) {
+			if ( type === 'string' || type === 'stringvector' || type === 'iccProfile' ) {
 
 
 				return parseFixedLengthString( buffer, offset, size );
 				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 ) {
 		function parseValue( dataView, buffer, offset, type, size ) {
 
 
-			if ( type === 'string' || type === 'iccProfile' ) {
+			if ( type === 'string' || type === 'stringvector' || type === 'iccProfile' ) {
 
 
 				return parseFixedLengthString( buffer, offset, size );
 				return parseFixedLengthString( buffer, offset, size );