Skip to content

Commit dd9f3b5

Browse files
authored
Fix (#286)
1 parent 21e7183 commit dd9f3b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

surfer/viz.py

+5
Original file line numberDiff line numberDiff line change
@@ -3322,6 +3322,11 @@ def add_data(self, array, fmin, fmid, fmax, thresh, lut, colormap, alpha,
33223322
**kwargs)
33233323
surf.actor.property.backface_culling = False
33243324

3325+
# There is a bug on some graphics cards concerning transparant
3326+
# overlays that is fixed by setting force_opaque.
3327+
if float(alpha) == 1:
3328+
surf.actor.actor.force_opaque = True
3329+
33253330
# apply look up table if given
33263331
if lut is not None:
33273332
l_m = surf.module_manager.scalar_lut_manager

0 commit comments

Comments
 (0)