From 717ac311420ecb3acea2a31214a79ab4411d0b6c Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 30 Nov 2011 18:18:03 +0100 Subject: fixed animation playback --- src/editorui/editormain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/editorui/editormain.py b/src/editorui/editormain.py index 4d8e1af..09bc4a3 100644 --- a/src/editorui/editormain.py +++ b/src/editorui/editormain.py @@ -32,7 +32,7 @@ class KPMapScene(QtGui.QGraphicsScene): for timeline in self.timeLines: timeline.start() - self.views()[0].update() + self.views()[0].viewport().update() else: self.playing = False @@ -41,12 +41,12 @@ class KPMapScene(QtGui.QGraphicsScene): for timeline in self.timeLines: timeline.stop() - self.views()[0].update() + self.views()[0].viewport().update() @QtCore.pyqtSlot(int) def thing(self, value): - self.views()[0].update() + self.views()[0].viewport().update() def drawBackground(self, painter, rect): -- cgit v1.2.3