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,9 +704,10 @@ class EditorInteractorStyle(DefaultInteractorStyle): | ||
| 704 | slice_data = self.viewer.get_slice_data(render) | 704 | slice_data = self.viewer.get_slice_data(render) |
| 705 | cursor = slice_data.cursor | 705 | cursor = slice_data.cursor |
| 706 | size = cursor.radius * 2 | 706 | size = cursor.radius * 2 |
| 707 | + size += 1 | ||
| 707 | 708 | ||
| 708 | if size < 100: | 709 | if size < 100: |
| 709 | - Publisher.sendMessage('Set edition brush size', size + 1) | 710 | + Publisher.sendMessage('Set edition brush size', size) |
| 710 | cursor.SetPosition(cursor.position) | 711 | cursor.SetPosition(cursor.position) |
| 711 | self.viewer.interactor.Render() | 712 | self.viewer.interactor.Render() |
| 712 | 713 | ||
| @@ -721,9 +722,10 @@ class EditorInteractorStyle(DefaultInteractorStyle): | @@ -721,9 +722,10 @@ class EditorInteractorStyle(DefaultInteractorStyle): | ||
| 721 | slice_data = self.viewer.get_slice_data(render) | 722 | slice_data = self.viewer.get_slice_data(render) |
| 722 | cursor = slice_data.cursor | 723 | cursor = slice_data.cursor |
| 723 | size = cursor.radius * 2 | 724 | size = cursor.radius * 2 |
| 725 | + size -= 1 | ||
| 724 | 726 | ||
| 725 | if size > 0: | 727 | if size > 0: |
| 726 | - Publisher.sendMessage('Set edition brush size', size - 1) | 728 | + Publisher.sendMessage('Set edition brush size', size) |
| 727 | cursor.SetPosition(cursor.position) | 729 | cursor.SetPosition(cursor.position) |
| 728 | self.viewer.interactor.Render() | 730 | self.viewer.interactor.Render() |
| 729 | else: | 731 | else: |