Skip to content

Commit

Permalink
Merge branch 'donotcallexecutefromonchange' into all
Browse files Browse the repository at this point in the history
  • Loading branch information
AIRCAP committed Sep 19, 2024
2 parents c72db7a + b85336a commit 4749c19
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions CurvedArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@ def onChanged(self, fp, prop):
if outOfBounds:
FreeCAD.Console.PrintWarning("Some positions are out of bounds, should all be between 0.0 and 1.0, inclusive\n")

self.execute(fp)

#background compatibility
CurvedArrayWorker = CurvedArray

Expand Down
3 changes: 0 additions & 3 deletions CurvedPathArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ def onChanged(self, fp, prop):
return
CurvedShapes.addObjectProperty(obj,"App::PropertyInteger", "LoftMaxDegree", "CurvedPathArray", "Max Degree for Surface or Solid", init_val=5) # backwards compatibility - this upgrades older documents

if prop in proplist:
self.execute(fp)

#background compatibility
CurvedPathArrayWorker = CurvedPathArray

Expand Down
3 changes: 0 additions & 3 deletions CurvedSegment.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ def onChanged(self, fp, prop):
if not hasattr(fp, p):
return
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "LoftMaxDegree", "CurvedSegment", "Max Degree for Surface or Solid", init_val=5) # backwards compatibility - this upgrades older documents
if prop in proplist:
self.execute(fp)


def makeRibs(self, fp):
interpolate = False
Expand Down
4 changes: 0 additions & 4 deletions InterpolatedMiddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ def onChanged(self, fp, prop):
return
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "LoftMaxDegree", "InterpolatedMiddle", "Max Degree for Surface or Solid", init_val=5) # backwards compatibility - this upgrades older documents)

if prop in proplist:
self.execute(fp)


def makeRibs(self, fp):
interpolate = False
if len(fp.Shape1.Shape.Edges) != len(fp.Shape2.Shape.Edges):
Expand Down
4 changes: 0 additions & 4 deletions NotchConnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,10 @@ def __init__(self,

def onChanged(self, fp, prop):
proplist = ["Base", "Tools", "CutDirection", "ShiftLength"]
if prop in proplist:
self.execute(fp)

if prop == "CutDepth" and fp.CutDirection != Vector(0.0,0.0,0.0):
cdep = 100 - abs(fp.CutDepth)
fp.CutDirection = fp.CutDirection.normalize() * cdep / 50
self.execute(fp)


def execute(self, fp):
if not fp.Base or not fp.Tools:
Expand Down
2 changes: 0 additions & 2 deletions SurfaceCut.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ def makeFace(self, fp):

def onChanged(self, fp, prop):
props = ["Surfaces", "Position", "Normal", "Simplify"]
if prop in props:
self.execute(fp)

if prop == "Face":
if fp.Face == True:
Expand Down

0 comments on commit 4749c19

Please sign in to comment.