Skip to content

Commit

Permalink
Add filter to skip the modifying when the zone of space is null (#3525)
Browse files Browse the repository at this point in the history
Co-authored-by: Jinxuan He <[email protected]>
Co-authored-by: Dimitrie Stefanescu <[email protected]>
Co-authored-by: Claire Kuang <[email protected]>
  • Loading branch information
4 people authored Jul 31, 2024
1 parent 44a1a37 commit 4f7829c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private DB.Zone CreateRevitZoneIfNeeded(Space speckleSpace, DB.Zone revitZone, P
{
revitZone = ConvertZoneToRevit(speckleSpace.zone, out _);
}
else if (revitZone != null && revitZone.Phase.Name != targetPhase.Name)
else if (revitZone != null && revitZone.Phase.Name != targetPhase.Name && speckleSpace.zone != null)
{
Doc.Delete(revitZone.Id);

Expand Down

0 comments on commit 4f7829c

Please sign in to comment.