Skip to content

Commit

Permalink
update fakes to more Revit API
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed Jul 3, 2024
1 parent 1b827e5 commit fe183ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Speckle.Revit2023.Fakes" VersionOverride="[0.2.1-preview.4, 1.0.0)" />
<PackageReference Include="Speckle.Revit2023.Fakes" VersionOverride="[0.2.1-preview.6, 1.0.0)" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
},
"Speckle.Revit2023.Fakes": {
"type": "Direct",
"requested": "[0.2.1-preview.4, 1.0.0)",
"resolved": "0.2.1-preview.4",
"contentHash": "ZyPgvJ5BfC/lF+40bb24OSE8k5taszGU1fLs21dEI5GDsVRfPgeMIXFXDdpjjqtEZQbeteCWfkY3ef5OpHgW2g==",
"requested": "[0.2.1-preview.6, 1.0.0)",
"resolved": "0.2.1-preview.6",
"contentHash": "tRU6SvyhKs/btDYfvMqyVQtt9I8Pun+vjaR6lkpmCuIi/CYFK16a/g0HoDBIySSs+F0J+olQscdpQ+nMfUU2Jg==",
"dependencies": {
"System.Drawing.Common": "8.0.6"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ public DB.CurveArray Convert(ICurve target)
{
// Enumerate all curves in the array to ensure polylines get fully converted.
using var subCurves = Convert(seg);
var crvEnumerator = subCurves.GetEnumerator();
while (crvEnumerator.MoveNext() && crvEnumerator.Current != null)
foreach (DB.Curve curve in subCurves)
{
curveArray.Append(crvEnumerator.Current as DB.Curve);
curveArray.Append(curve);

}
}
return curveArray;
Expand Down

0 comments on commit fe183ff

Please sign in to comment.