diff options
author | Colin Noga <Tempus@chronometry.ca> | 2011-12-30 03:10:11 -0600 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2011-12-30 03:10:11 -0600 |
commit | d64667a1a15dc9c13f1883d338c5cfd15074f4a9 (patch) | |
tree | c6419a16c59b0c3dc6342e2c477883de1f42da76 /src/editorui/paths.py | |
parent | 8dd9e24d1dffac3404a7c900268cbe6d2ce1e63b (diff) | |
download | koopatlas-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.py | 4 |
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) |