Skip to content

Commit

Permalink
USDZExporter: Fixed exporting Xforms with duplicated names.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 9, 2021
1 parent 048195e commit ac377cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/exporters/USDZExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function buildHeader() {

function buildXform( object, define ) {

const name = object.name || 'Xform1';
const name = 'Object' + object.id;
const transform = buildMatrix( object.matrixWorld );

return `def Xform "${ name }"
Expand Down Expand Up @@ -79,7 +79,7 @@ function buildMatrixRow( array, offset ) {

function buildMesh( geometry, material ) {

const name = geometry.name || 'Mesh1';
const name = 'Geometry' + geometry.id;
const attributes = geometry.attributes;
const count = attributes.position.count;

Expand Down

0 comments on commit ac377cf

Please sign in to comment.