Skip to content

Commit

Permalink
Added Guid generation for Door
Browse files Browse the repository at this point in the history
  • Loading branch information
srudenkoamc committed Oct 30, 2023
1 parent 980663e commit 7cdcb81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Elements/src/Door.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public Door(Wall wall,
Transform = GetDoorTransform(currentPosition, wallLine, flip);
Representation = representation ?? new Representation(new List<SolidOperation>() { });
Opening = new Opening(Polygon.Rectangle(width, height), depthFront, depthBack, GetOpeningTransform());
Id = id;
Id = id != default ? id : Guid.NewGuid();
Name = name;
}

Expand Down Expand Up @@ -124,7 +124,7 @@ public Door(double width,
Representation = representation ?? new Representation(new List<SolidOperation>() { });
Opening = new Opening(Polygon.Rectangle(width, height), depthFront, depthBack, GetOpeningTransform());
OriginalPosition = Transform.Origin;
Id = id;
Id = id != default ? id : Guid.NewGuid();
Name = name;
}

Expand Down

0 comments on commit 7cdcb81

Please sign in to comment.