2
0
Эх сурвалжийг харах

Revert examples/jsm/exporters/GLTFExporter.js per review comments

Gary Oberbrunner 6 жил өмнө
parent
commit
44da17f754

+ 0 - 10
examples/jsm/exporters/GLTFExporter.js

@@ -1188,16 +1188,6 @@ GLTFExporter.prototype = {
 				var attribute = geometry.attributes[ attributeName ];
 				attributeName = nameConversion[ attributeName ] || attributeName.toUpperCase();
 
-				// Prefix all geometry attributes except the ones specifically
-				// listed in the spec; non-spec attributes are considered custom.
-				var validVertexAttributes =
-						/^(POSITION|NORMAL|TANGENT|TEXCOORD_\d+|COLOR_\d+|JOINTS_\d+|WEIGHTS_\d+)$/;
-				if ( ! validVertexAttributes.test( attributeName ) ) {
-
-					attributeName = '_' + attributeName;
-
-				}
-
 				if ( cachedData.attributes.has( attribute ) ) {
 
 					attributes[ attributeName ] = cachedData.attributes.get( attribute );