Commit 7b1b9c9238cbf826981d3859a3814b043b20e766
1 parent
6808745f
Exists in
master
and in
38 other branches
fixed problem with cursor showing in the wrong position when enter on watershed
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/styles.py
... | ... | @@ -916,6 +916,7 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): |
916 | 916 | Publisher.subscribe(self.set_bformat, 'Set watershed brush format') |
917 | 917 | |
918 | 918 | self._set_cursor() |
919 | + self.viewer.slice_data.cursor.Show(0) | |
919 | 920 | |
920 | 921 | def SetUp(self): |
921 | 922 | mask = self.viewer.slice_.current_mask.matrix |
... | ... | @@ -963,7 +964,6 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): |
963 | 964 | cursor.SetColour(self.viewer._brush_cursor_colour) |
964 | 965 | cursor.SetSize(self.config.cursor_size) |
965 | 966 | self.viewer.slice_data.SetCursor(cursor) |
966 | - self.viewer.interactor.Render() | |
967 | 967 | |
968 | 968 | def set_bsize(self, pubsub_evt): |
969 | 969 | size = pubsub_evt.data | ... | ... |