Commit 1813028581bf6f68b083c9743a8032c32a362852
1 parent
6fa9ca3e
Exists in
master
and in
6 other branches
FIX: Hidding the clut raycasting widget when the raycasting is setted to off
Showing
1 changed file
with
9 additions
and
8 deletions
Show diff stats
invesalius/data/volume.py
... | ... | @@ -125,14 +125,15 @@ class Volume(): |
125 | 125 | |
126 | 126 | def OnUpdatePreset(self, pubsub_evt): |
127 | 127 | self.__load_preset_config() |
128 | - if self.exist: | |
129 | - self.__load_preset() | |
130 | - self.volume.SetVisibility(1) | |
131 | - #ps.Publisher().sendMessage('Render volume viewer') | |
132 | - else: | |
133 | - self.LoadVolume() | |
134 | - self.CalculateHistogram() | |
135 | - self.exist = 1 | |
128 | + if self.config: | |
129 | + if self.exist: | |
130 | + self.__load_preset() | |
131 | + self.volume.SetVisibility(1) | |
132 | + #ps.Publisher().sendMessage('Render volume viewer') | |
133 | + else: | |
134 | + self.LoadVolume() | |
135 | + self.CalculateHistogram() | |
136 | + self.exist = 1 | |
136 | 137 | |
137 | 138 | def __load_preset_config(self): |
138 | 139 | self.config = prj.Project().raycasting_preset | ... | ... |