Skip to content

Commit ac377cf

Browse files
committed
USDZExporter: Fixed exporting Xforms with duplicated names.
1 parent 048195e commit ac377cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jsm/exporters/USDZExporter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function buildHeader() {
4646

4747
function buildXform( object, define ) {
4848

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

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

8080
function buildMesh( geometry, material ) {
8181

82-
const name = geometry.name || 'Mesh1';
82+
const name = 'Geometry' + geometry.id;
8383
const attributes = geometry.attributes;
8484
const count = attributes.position.count;
8585

0 commit comments

Comments
 (0)