Skip to content

Commit

Permalink
Merge pull request #1271 from mcneel/1.28
Browse files Browse the repository at this point in the history
Fix on 'Host Objects' component.
  • Loading branch information
kike-garbo authored Jan 2, 2025
2 parents 7fe736a + a2023a7 commit 00a6976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RhinoInside.Revit.GH/Types/HostObjects/HostObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal bool SetSlabShape(IList<Point3d> points, IList<Line> creases, out IList
var bbox = BoundingBox;
var elevation = GeometryEncoder.ToInternalLength(bbox.Max.Z);

var vertices = new Dictionary<Point3d, ARDB.SlabShapeVertex>(shape.SlabShapeVertices.Size + points.Count);
var vertices = new Dictionary<Point3d, ARDB.SlabShapeVertex>(shape.SlabShapeVertices.Size + (points?.Count ?? 0) + (creases?.Count ?? 0));
ARDB.SlabShapeVertex AddVertex(Point3d point)
{
var x = GeometryEncoder.ToInternalLength(point.X);
Expand Down

0 comments on commit 00a6976

Please sign in to comment.