diff options
Diffstat (limited to '')
-rw-r--r-- | src/editorui/doodads.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/editorui/doodads.py b/src/editorui/doodads.py index 89ccfc7..068c420 100644 --- a/src/editorui/doodads.py +++ b/src/editorui/doodads.py @@ -426,9 +426,9 @@ class KPEditorDoodad(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()) @@ -460,8 +460,8 @@ class KPEditorDoodad(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() if (event.modifiers() & Qt.ShiftModifier): |