Skip to content

Commit

Permalink
Fixed crash in step import introduced with rev 38d0870
Browse files Browse the repository at this point in the history
nurbsSurfacesWithModifiedKnots.TryGetValue the key can't be null.
  • Loading branch information
davidebazzi committed Oct 24, 2024
1 parent 38d0870 commit 69d075f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CADability/ImportStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4238,7 +4238,7 @@ private object CreateEntity(Item item)
}
}
}
if (nurbsSurfacesWithModifiedKnots.TryGetValue(srf as NurbsSurface, out ModOp2D modify2DCurve))
if (srf is NurbsSurface nurbsSurface && nurbsSurfacesWithModifiedKnots.TryGetValue(nurbsSurface, out ModOp2D modify2DCurve))
{
// this nurbs surface doesn't have the original 2d space. Move the 2d curve to the modified 2d space here.
c2d = c2d.GetModified(modify2DCurve);
Expand Down

0 comments on commit 69d075f

Please sign in to comment.