Skip to content

Commit 46ad041

Browse files
Copilotgonzalocasas
andcommitted
Use NONE enum constant directly instead of getattr
Co-authored-by: gonzalocasas <933277+gonzalocasas@users.noreply.github.com>
1 parent d463da2 commit 46ad041

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/compas_rhino/geometry/curves

src/compas_rhino/geometry/curves/curve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def offset(self, distance, direction, tolerance=1e-3):
395395
point = self.point_at(self.domain[0]) # type: ignore
396396
plane = Plane(point, direction)
397397
plane = plane_to_rhino(plane)
398-
corner_style = getattr(Rhino.Geometry.CurveOffsetCornerStyle, "None")
398+
corner_style = Rhino.Geometry.CurveOffsetCornerStyle.NONE
399399
self.native_curve = self.native_curve.Offset(plane, distance, tolerance, corner_style)[0] # type: ignore
400400

401401
def smooth(self):

0 commit comments

Comments
 (0)