提交 c0ce57fc 编写于 作者: M Mugen87

LOD: Honor .autoUpdate in toJSON().

上级 83d339a9
......@@ -964,6 +964,8 @@ ObjectLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
if ( data.type === 'LOD' ) {
if ( data.autoUpdate !== undefined ) object.autoUpdate = data.autoUpdate;
var levels = data.levels;
for ( var l = 0; l < levels.length; l ++ ) {
......
......@@ -161,6 +161,8 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
var data = Object3D.prototype.toJSON.call( this, meta );
if ( this.autoUpdate === false ) data.object.autoUpdate = false;
data.object.levels = [];
var levels = this.levels;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册