diff options
Diffstat (limited to 'src/editorui.py')
-rw-r--r-- | src/editorui.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/editorui.py b/src/editorui.py index 48164a0..05cb77f 100644 --- a/src/editorui.py +++ b/src/editorui.py @@ -260,6 +260,8 @@ class KPMapScene(QtGui.QGraphicsScene): areaBottomT = ceil(areaBottom / 24) for layer in reversed(KP.map.layers): + if not layer.visible: continue + left, top = layer.cacheBasePos width, height = layer.cacheSize right, bottom = left+width, top+height @@ -365,6 +367,7 @@ class KPEditorWidget(QtGui.QGraphicsView): y = int(y / 24) layer = self.scene().currentLayer + if not layer.visible: return obj = KPObject() obj.position = (x,y) |