Merge pull request #6571 from Russ4262/fix/tag_dressup_radius_value
Path: Fix inconsistent float type usage, issue #6170 [Bug]
This commit is contained in:
@@ -134,10 +134,8 @@ class Tag:
|
||||
self.height = math.fabs(height)
|
||||
self.actualHeight = self.height
|
||||
self.angle = math.fabs(angle)
|
||||
self.radius = (
|
||||
radius
|
||||
if FreeCAD.Units.Quantity == type(radius)
|
||||
else FreeCAD.Units.Quantity(radius, FreeCAD.Units.Length)
|
||||
self.radius = getattr(
|
||||
radius, "Value", FreeCAD.Units.Quantity(radius, FreeCAD.Units.Length).Value
|
||||
)
|
||||
self.enabled = enabled
|
||||
self.isSquare = False
|
||||
@@ -209,7 +207,7 @@ class Tag:
|
||||
self.solid.translate(orig)
|
||||
radius = min(self.radius, radius)
|
||||
self.realRadius = radius
|
||||
if not PathGeom.isRoughly(0, radius.Value):
|
||||
if not PathGeom.isRoughly(0, radius):
|
||||
PathLog.debug("makeFillet(%.4f)" % radius)
|
||||
self.solid = self.solid.makeFillet(radius, [self.solid.Edges[0]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user