summaryrefslogtreecommitdiff
path: root/src/editorui/paths.py
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2011-12-30 03:10:11 -0600
committerColin Noga <Tempus@chronometry.ca>2011-12-30 03:10:11 -0600
commitd64667a1a15dc9c13f1883d338c5cfd15074f4a9 (patch)
treec6419a16c59b0c3dc6342e2c477883de1f42da76 /src/editorui/paths.py
parent8dd9e24d1dffac3404a7c900268cbe6d2ce1e63b (diff)
downloadkoopatlas-d64667a1a15dc9c13f1883d338c5cfd15074f4a9.tar.gz
koopatlas-d64667a1a15dc9c13f1883d338c5cfd15074f4a9.zip
Hopefully this works. Associated Path/Node layers pretty much good to go, I think?
Diffstat (limited to 'src/editorui/paths.py')
-rw-r--r--src/editorui/paths.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/editorui/paths.py b/src/editorui/paths.py
index 617e981..55bfac0 100644
--- a/src/editorui/paths.py
+++ b/src/editorui/paths.py
@@ -325,6 +325,7 @@ class KPEditorNode(KPEditorItem):
layer = KP.map.pathLayer
layer.nodes.remove(node)
+ KP.mainWindow.pathNodeList.removeLayer(node)
if len(node.exits) == 2:
# let's try to join the two!
@@ -354,6 +355,7 @@ class KPEditorNode(KPEditorItem):
if not nope:
joinedPath = KPPath(start, end, pathOne)
+ KP.mainWindow.pathNodeList.addLayer(joinedPath)
layer.paths.append(joinedPath)
item = KPEditorPath(joinedPath)
self.scene().addItem(item)
@@ -501,7 +503,6 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
self.setPalette(palette)
-
class UnlockButton(QtGui.QPushButton):
def __init__(self, pathRef):
QtGui.QPushButton.__init__(self)
@@ -682,6 +683,7 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
path = self._pathRef()
layer = KP.map.pathLayer
+ KP.mainWindow.pathNodeList.removeLayer(path)
layer.paths.remove(path)