summaryrefslogtreecommitdiff
path: root/src/editorui/doodads.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-01-01 23:33:25 +0100
committerTreeki <treeki@gmail.com>2012-01-01 23:33:25 +0100
commite5d1d12873748e500210a6feebf108ef501134e2 (patch)
tree31660279a50e1b798587db49c69ccaeae47b8912 /src/editorui/doodads.py
parentee339d840cdbc163bd82f522720aa44fb1ae4b69 (diff)
downloadkoopatlas-e5d1d12873748e500210a6feebf108ef501134e2.tar.gz
koopatlas-e5d1d12873748e500210a6feebf108ef501134e2.zip
fixed a plethora of bugs
Diffstat (limited to '')
-rw-r--r--src/editorui/doodads.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/editorui/doodads.py b/src/editorui/doodads.py
index 7b9e222..b916b27 100644
--- a/src/editorui/doodads.py
+++ b/src/editorui/doodads.py
@@ -337,6 +337,7 @@ class KPEditorDoodad(KPEditorItem):
self._updatePixmap()
self._updatePosition()
self._updateSize()
+ self._updateTransform()
self.anmButton = self.DoodadAnmButton(self._doodadRef)
self.anmProxy = self.HiddenProxy(self.anmButton, self, self.boundingRect().right() - 101, self.boundingRect().bottom() - 25)
@@ -565,7 +566,10 @@ class KPEditorDoodad(KPEditorItem):
doodad = self._doodadRef()
layer = self._layerRef()
- layer.objects.remove(doodad)
+ if isinstance(layer, KPPathTileLayer):
+ layer.doodads.remove(doodad)
+ else:
+ layer.objects.remove(doodad)
doodad.cleanUpAnimations()
if withItem: