提交 1be56d6c 编写于 作者: M Mugen87

Object3D: Simplify layers serialization

上级 bbdf1358
......@@ -659,17 +659,11 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
if ( this.renderOrder !== 0 ) object.renderOrder = this.renderOrder;
if ( JSON.stringify( this.userData ) !== '{}' ) object.userData = this.userData;
object.layers = { mask: this.layers.mask };
object.matrix = this.matrix.toArray();
if ( this.matrixAutoUpdate === false ) object.matrixAutoUpdate = false;
if ( this.layers.mask !== 1 ) {
object.layers = {};
object.layers.mask = this.layers.mask;
}
//
function serialize( library, element ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册