修复:地板z轴错误
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user