From 9aae6f2aac200d11b9f1cc90d745ffe68b735e3a Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Thu, 26 Jul 2012 16:14:46 -0500 Subject: fixed a doodad release on multi-edit bug --- src/editorui/doodads.py | 1 - src/mapdata.py | 6 +++++- src/ui.py | 9 +++++---- 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/editorui/doodads.py b/src/editorui/doodads.py index 068c420..bdba4d4 100644 --- a/src/editorui/doodads.py +++ b/src/editorui/doodads.py @@ -55,7 +55,6 @@ class KPEditorDoodad(KPEditorItem): print thong print type(thong) - def setEditorData(self, editor, index): diff --git a/src/mapdata.py b/src/mapdata.py index d175046..5d46685 100644 --- a/src/mapdata.py +++ b/src/mapdata.py @@ -334,8 +334,12 @@ class KPDoodad(object): self.offsetTimer.start() def startTimeline(self): + if QtCore.QTimeLine.state(self) == 0: + QtCore.QTimeLine.start(self) + else: + QtCore.QTimeLine.stop(self) + QtCore.QTimeLine.start(self) - QtCore.QTimeLine.start(self) def cleanUpAnimations(self): myTimelines = self.timelines diff --git a/src/ui.py b/src/ui.py index ba63320..d5f9cdf 100644 --- a/src/ui.py +++ b/src/ui.py @@ -988,10 +988,11 @@ class KPAnmOptions(QtGui.QWidget): anmList.append(rowList) for doodad in self.doodadList: - d = doodad() + if doodad() != None: + d = doodad() - d.animations = anmList - d.setupAnimations() + d.animations = anmList + d.setupAnimations() model.clear() self.model.setHorizontalHeaderLabels(["Looping", "Interpolation", "Frame Len", "Type", "Start Value", "End Value", "Delay", "Delay Offset"]) @@ -1365,7 +1366,7 @@ class KPMainWindow(QtGui.QMainWindow): fn = unicode(fn) for d in KP.map.doodadDefinitions: - d[1].save(fn + d[0] + '.png', 'PNG') + d[1].save(fn + '/' + d[0] + '.png', 'PNG') def batchSave(self): -- cgit v1.2.3