mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 23:36:36 +00:00
libtools/ToolObject.py:_mouseEventTsSelect(): reset object{Map,Size} when resetting to TS_NONE.
This commit is contained in:
parent
0d5f588108
commit
cad73fd135
@ -87,7 +87,7 @@ class ToolObject(Tool):
|
|||||||
else:
|
else:
|
||||||
dirty = self.onSelectEvent(canvas, (0, 0), dispatchFn, eventDc, False, keyModifiers, self.targetRect.copy(), self.targetRect, viewRect)
|
dirty = self.onSelectEvent(canvas, (0, 0), dispatchFn, eventDc, False, keyModifiers, self.targetRect.copy(), self.targetRect, viewRect)
|
||||||
self._drawSelectRect(self.targetRect, dispatchFn, eventDc, viewRect)
|
self._drawSelectRect(self.targetRect, dispatchFn, eventDc, viewRect)
|
||||||
self.targetRect, self.toolState = None, self.TS_NONE
|
self.objectMap, self.objectSize, self.targetRect, self.toolState = None, None, None, self.TS_NONE
|
||||||
else:
|
else:
|
||||||
dirty = self._dispatchSelectEvent(canvas, dispatchFn, eventDc, keyModifiers, mapPoint, mouseLeftDown, self.targetRect, viewRect)
|
dirty = self._dispatchSelectEvent(canvas, dispatchFn, eventDc, keyModifiers, mapPoint, mouseLeftDown, self.targetRect, viewRect)
|
||||||
return dirty
|
return dirty
|
||||||
|
Loading…
Reference in New Issue
Block a user