Part: Rename AttachExtension::Support property to AttachmentSupport, to avoid name conflict with base features. Fixes #7052
This commit is contained in:
committed by
Adrián Insaurralde Avalos
parent
2643902b6b
commit
fbd8767242
@@ -91,7 +91,7 @@ def make_bezcurve(pointslist,
|
||||
obj.Degree = min((len(pointslist)-(1 * (not closed))),
|
||||
Part.BezierCurve().MaxDegree)
|
||||
obj.Closed = closed
|
||||
obj.Support = support
|
||||
obj.AttachmentSupport = support
|
||||
if face is not None:
|
||||
obj.MakeFace = face
|
||||
obj.Proxy.resetcontinuity(obj)
|
||||
|
||||
@@ -96,7 +96,7 @@ def make_bspline(pointslist, closed=False, placement=None, face=None, support=No
|
||||
BSpline(obj)
|
||||
obj.Closed = closed
|
||||
obj.Points = pointslist
|
||||
obj.Support = support
|
||||
obj.AttachmentSupport = support
|
||||
if face is not None:
|
||||
obj.MakeFace = face
|
||||
if placement: obj.Placement = placement
|
||||
|
||||
@@ -119,7 +119,7 @@ def make_circle(radius, placement=None, face=None, startangle=None, endangle=Non
|
||||
obj.FirstAngle = math.copysign(abs(startangle) % 360, startangle)
|
||||
obj.LastAngle = math.copysign(abs(endangle) % 360, endangle)
|
||||
|
||||
obj.Support = support
|
||||
obj.AttachmentSupport = support
|
||||
|
||||
if placement:
|
||||
obj.Placement = placement
|
||||
|
||||
@@ -72,7 +72,7 @@ def make_ellipse(majradius, minradius, placement=None, face=None, support=None):
|
||||
majradius, minradius = minradius, majradius
|
||||
obj.MajorRadius = majradius
|
||||
obj.MinorRadius = minradius
|
||||
obj.Support = support
|
||||
obj.AttachmentSupport = support
|
||||
|
||||
if face is not None:
|
||||
obj.MakeFace = face
|
||||
|
||||
@@ -74,7 +74,7 @@ def make_polygon(nfaces, radius=1, inscribed=True, placement=None, face=None, su
|
||||
obj.DrawMode = "inscribed"
|
||||
else:
|
||||
obj.DrawMode = "circumscribed"
|
||||
obj.Support = support
|
||||
obj.AttachmentSupport = support
|
||||
if placement: obj.Placement = placement
|
||||
if App.GuiUp:
|
||||
ViewProviderDraft(obj.ViewObject)
|
||||
|
||||
@@ -82,7 +82,7 @@ def make_rectangle(length, height=0, placement=None, face=None, support=None):
|
||||
|
||||
obj.Length = length
|
||||
obj.Height = height
|
||||
obj.Support = support
|
||||
obj.AttachmentSupport = support
|
||||
|
||||
if face is not None:
|
||||
obj.MakeFace = face
|
||||
|
||||
@@ -112,7 +112,7 @@ def make_wire(pointslist, closed=False, placement=None, face=None, support=None,
|
||||
Wire(obj)
|
||||
obj.Points = pointslist
|
||||
obj.Closed = closed
|
||||
obj.Support = support
|
||||
obj.AttachmentSupport = support
|
||||
|
||||
if face is not None:
|
||||
obj.MakeFace = face
|
||||
|
||||
Reference in New Issue
Block a user