Browse Source

Merge pull request #19467 from Mugen87/dev45

GLTFExporter: Fix itemSize check.
Michael Herzog 5 years ago
parent
commit
c074189c9e
2 changed files with 4 additions and 4 deletions
  1. 2 2
      examples/js/exporters/GLTFExporter.js
  2. 2 2
      examples/jsm/exporters/GLTFExporter.js

+ 2 - 2
examples/js/exporters/GLTFExporter.js

@@ -508,9 +508,9 @@ THREE.GLTFExporter.prototype = {
 
 					var value;
 
-					if ( attribute.itemSize > 3 ) {
+					if ( attribute.itemSize > 4 ) {
 
-						 // no support for interleaved data for itemSize > 3
+						 // no support for interleaved data for itemSize > 4
 
 						value = attribute.array[ i * attribute.itemSize + a ];
 

+ 2 - 2
examples/jsm/exporters/GLTFExporter.js

@@ -530,9 +530,9 @@ GLTFExporter.prototype = {
 
 					var value;
 
-					if ( attribute.itemSize > 3 ) {
+					if ( attribute.itemSize > 4 ) {
 
-						 // no support for interleaved data for itemSize > 3
+						 // no support for interleaved data for itemSize > 4
 
 						value = attribute.array[ i * attribute.itemSize + a ];