diff options
Diffstat (limited to 'src/editorui/paths.py')
-rw-r--r-- | src/editorui/paths.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/editorui/paths.py b/src/editorui/paths.py index c1579be..2f4388a 100644 --- a/src/editorui/paths.py +++ b/src/editorui/paths.py @@ -230,10 +230,14 @@ class KPEditorNode(KPEditorItem): def _updatePosition(self): + self.ignoreMovement = True + node = self._nodeRef() x, y = node.position self.setPos(x+12, y+12) + self.ignoreMovement = False + def _itemMoved(self, oldX, oldY, newX, newY): node = self._nodeRef() @@ -440,7 +444,13 @@ class KPEditorPath(QtGui.QGraphicsLineItem): # Connections - self.ExclusiveButtons.buttonReleased.connect(self.updatePathAnim) + # regular connect doesn't work for some reason... + #self.ExclusiveButtons.buttonReleased.connect(self.updatePathAnim) + QtCore.QObject.connect( + self.ExclusiveButtons, + QtCore.SIGNAL('buttonReleased(int)'), + self.updatePathAnim) + self.moveSpeedSpinner.valueChanged.connect(self.updateMoveSpeed) self.linkedLayer.currentIndexChanged.connect(self.updateLinkLayer) @@ -464,6 +474,7 @@ class KPEditorPath(QtGui.QGraphicsLineItem): path = self._pathRef() path.animation = buttonID + print path.animation path.qtItem.update() |