summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/editorui/doodads.py1
-rw-r--r--src/mapdata.py6
-rw-r--r--src/ui.py9
3 files changed, 10 insertions, 6 deletions
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):