Skip to content

Commit

Permalink
fix(Archicad): Room deserialisation fix (#2935)
Browse files Browse the repository at this point in the history
level can be null
  • Loading branch information
jozseflkiss authored Sep 18, 2023
1 parent 8ed89c4 commit c67e3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/Objects/BuiltElements/Room.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class ArchicadRoom : Room
public override Level level
{
get => archicadLevel;
set => archicadLevel = value as ArchicadLevel ?? throw new System.ArgumentException("Must be ArchicadLevel");
set => archicadLevel = value as ArchicadLevel ?? null;
}

public double height { get; set; }
Expand Down

0 comments on commit c67e3cf

Please sign in to comment.