Skip to content

Commit

Permalink
[processing] fix folding in the model
Browse files Browse the repository at this point in the history
Earlier commit broke the update of lines when folding  parameters in the
modeler. This one fixes it again.
  • Loading branch information
HenningJagd committed May 22, 2015
1 parent 4e6394e commit 8c624a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/modeler/ModelerGraphicItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,15 @@ def foldInput(self, folded):
pt = self.getLinkPointForOutput(-1)
pt = QPointF(0, pt.y())
self.outButton.position = pt
for arrow in self.arrows:
arrow.updatePath()
self.update()

def foldOutput(self, folded):
self.element.outputsFolded = folded
self.prepareGeometryChange()
for arrow in self.arrows:
arrow.updatePath()
self.update()

def addArrow(self, arrow):
Expand Down

0 comments on commit 8c624a3

Please sign in to comment.