Commit ded8a20d9a503ef5035754aa2a748467788d0889

Authored by tfmoraes
1 parent 7eecf2b4

FIX: It wasn't checking the use of the shading when a new preset is setted in the raycasting

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
invesalius/data/volume.py
... ... @@ -286,7 +286,11 @@ class Volume():
286 286 return colors, opacities, color_background, p['useShading']
287 287  
288 288 def SetShading(self):
289   - print "Shading"
  289 + if self.config['useShading']:
  290 + self.volume_properties.ShadeOn()
  291 + else:
  292 + self.volume_properties.ShadeOff()
  293 +
290 294 shading = SHADING[self.config['shading']]
291 295 self.volume_properties.SetAmbient(shading['ambient'])
292 296 self.volume_properties.SetDiffuse(shading['diffuse'])
... ...