修复:地板z轴错误

This commit is contained in:
ChenX
2022-05-27 17:49:57 +08:00
parent 4a1542027d
commit fc4a0fc40b
6 changed files with 8 additions and 12 deletions

View File

@@ -1533,9 +1533,7 @@ exports.Entity = Entity_1 = class Entity extends CADObject {
set Z(z) {
if (equaln$1(this.Z, z))
return;
this.WriteAllObjectRecord();
this._Matrix.elements[14] = z;
this.Update(UpdateDraw.Matrix);
this.Move({ x: 0, y: 0, z: z - this.Z });
}
//Z轴归0
Z0() {
@@ -35382,7 +35380,7 @@ class RoomRegionParse {
let maxZ = 0;
let minZ = walls[0].Z;
for (let wall of walls) {
maxZ = Math.max(wall.Z);
maxZ = Math.max(wall.Z + wall.Height, maxZ);
if (!wall.LeftCurves) {
continue;
}