summaryrefslogtreecommitdiff
path: root/src/editorui/objects.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/editorui/objects.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/editorui/objects.py b/src/editorui/objects.py
index 71566a6..872e289 100644
--- a/src/editorui/objects.py
+++ b/src/editorui/objects.py
@@ -51,9 +51,9 @@ class KPEditorObject(KPEditorItem):
def hoverMoveEvent(self, event):
- # if self._layerRef() != KP.mapScene.currentLayer:
- # self.setCursor(Qt.ArrowCursor)
- # return
+ if self._layerRef() != KP.mapScene.currentLayer:
+ self.setCursor(Qt.ArrowCursor)
+ return
pos = event.pos()
bit = self.resizerPortionAt(pos.x(), pos.y())
@@ -75,8 +75,8 @@ class KPEditorObject(KPEditorItem):
pos = event.pos()
bit = self.resizerPortionAt(pos.x(), pos.y())
- # if self._layerRef() == KP.mapScene.currentLayer and bit:
- if bit:
+ if self._layerRef() == KP.mapScene.currentLayer and bit:
+ # if bit:
event.accept()
x, xSide, y, ySide = False, None, False, None