提交 12a7d806 编写于 作者: T Takahiro

GLTFExporter: export BufferGeometry.userData

上级 a17dc8c8
......@@ -1182,6 +1182,8 @@ THREE.GLTFExporter.prototype = {
}
var extras = ( Object.keys( geometry.userData ).length > 0 ) ? serializeUserData( geometry ) : undefined;
var forceIndices = options.forceIndices;
var isMultiMaterial = Array.isArray( mesh.material );
......@@ -1223,6 +1225,8 @@ THREE.GLTFExporter.prototype = {
attributes: attributes,
};
if ( extras ) primitive.extras = extras;
if ( targets.length > 0 ) primitive.targets = targets;
if ( geometry.index !== null ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册