Commit 715511f15e5a8016f80afeff724005ecc377cbb3
1 parent
1d9b4c37
Exists in
master
and in
6 other branches
FIX: Sending a render to update after hidding a measure
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
invesalius/data/measures.py
... | ... | @@ -114,7 +114,10 @@ class MeasurementManager(object): |
114 | 114 | m, mr = self.measures[index] |
115 | 115 | m.is_shown = visibility |
116 | 116 | mr.SetVisibility(visibility) |
117 | - ps.Publisher().sendMessage('Update slice viewer') | |
117 | + if m.location == const.SURFACE: | |
118 | + ps.Publisher().sendMessage('Render volume viewer') | |
119 | + else: | |
120 | + ps.Publisher().sendMessage('Update slice viewer') | |
118 | 121 | |
119 | 122 | |
120 | 123 | class Measurement(): | ... | ... |