修复由左右侧板作为根节点的模块在空间插入后错误的问题

pull/751/MERGE
ChenX 5 years ago
parent 28bc2f951e
commit 107457ca05

@ -52,6 +52,8 @@ export class TemplateLeftRightBoardRecord extends TemplateRecord
lBr.Width = this._CacheSpaceSize.y; lBr.Width = this._CacheSpaceSize.y;
rBr.Width = this._CacheSpaceSize.y; rBr.Width = this._CacheSpaceSize.y;
rBr.Position = lBr.Position.add(new Vector3(this._CacheSpaceSize.x - lBr.Thickness)); let x = new Vector3().setFromMatrixColumn(this._CacheSpaceCS, 0);
x.multiplyScalar(this._CacheSpaceSize.x - lBr.Thickness);
rBr.Position = lBr.Position.add(x);
} }
} }

Loading…
Cancel
Save