Commit c436a85dd7bd8fd7520033601555244498b0fa1b
1 parent
f68939cd
Exists in
master
and in
38 other branches
not reducing the editor pencil above 0
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
invesalius/data/styles.py
... | ... | @@ -704,9 +704,10 @@ class EditorInteractorStyle(DefaultInteractorStyle): |
704 | 704 | slice_data = self.viewer.get_slice_data(render) |
705 | 705 | cursor = slice_data.cursor |
706 | 706 | size = cursor.radius * 2 |
707 | + size += 1 | |
707 | 708 | |
708 | 709 | if size < 100: |
709 | - Publisher.sendMessage('Set edition brush size', size + 1) | |
710 | + Publisher.sendMessage('Set edition brush size', size) | |
710 | 711 | cursor.SetPosition(cursor.position) |
711 | 712 | self.viewer.interactor.Render() |
712 | 713 | |
... | ... | @@ -721,9 +722,10 @@ class EditorInteractorStyle(DefaultInteractorStyle): |
721 | 722 | slice_data = self.viewer.get_slice_data(render) |
722 | 723 | cursor = slice_data.cursor |
723 | 724 | size = cursor.radius * 2 |
725 | + size -= 1 | |
724 | 726 | |
725 | 727 | if size > 0: |
726 | - Publisher.sendMessage('Set edition brush size', size - 1) | |
728 | + Publisher.sendMessage('Set edition brush size', size) | |
727 | 729 | cursor.SetPosition(cursor.position) |
728 | 730 | self.viewer.interactor.Render() |
729 | 731 | else: | ... | ... |