We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1103c4 commit 8433558Copy full SHA for 8433558
1 file changed
examples/jsm/exporters/GLTFExporter.js
@@ -1848,7 +1848,7 @@ class GLTFWriter {
1848
const validVertexAttributes =
1849
/^(POSITION|NORMAL|TANGENT|TEXCOORD_\d+|COLOR_\d+|JOINTS_\d+|WEIGHTS_\d+)$/;
1850
1851
- if ( ! validVertexAttributes.test( attributeName ) ) attributeName = '_' + attributeName;
+ if ( ! validVertexAttributes.test( attributeName ) && ! attributeName.startsWith( '_' ) ) attributeName = '_' + attributeName;
1852
1853
if ( cache.attributes.has( this.getUID( attribute ) ) ) {
1854
0 commit comments