Skip to content

Commit 722ebb2

Browse files
authored
Merge pull request #15289 from makc/patch-1
GLTFExporter: serialize scene userData
2 parents e61e7c0 + 9614c89 commit 722ebb2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/js/exporters/GLTFExporter.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,12 @@ THREE.GLTFExporter.prototype = {
16661666

16671667
}
16681668

1669+
if ( scene.userData && Object.keys( scene.userData ).length > 0 ) {
1670+
1671+
gltfScene.extras = serializeUserData( scene );
1672+
1673+
}
1674+
16691675
outputJSON.scenes.push( gltfScene );
16701676

16711677
var nodes = [];

0 commit comments

Comments
 (0)