Commit f51956d0a47e1e1cfd9d05778af04278871432ec
1 parent
4dcf4dfc
Exists in
master
and in
67 other branches
FIX: A problem with vtk to macosx about using a float in lut_mask.SetTableValue …
…when it is needed to be an int
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/cursor_actors.py
@@ -214,7 +214,7 @@ class CursorBase(object): | @@ -214,7 +214,7 @@ class CursorBase(object): | ||
214 | lut_mask.SetRange(0, 255) | 214 | lut_mask.SetRange(0, 255) |
215 | lut_mask.SetNumberOfTableValues(256) | 215 | lut_mask.SetNumberOfTableValues(256) |
216 | lut_mask.SetTableValue(0, 0, 0, 0, 0.0) | 216 | lut_mask.SetTableValue(0, 0, 0, 0, 0.0) |
217 | - lut_mask.SetTableValue(1.0, 1-r, 1-g, 1-b, 0.50) | 217 | + lut_mask.SetTableValue(1, 1-r, 1-g, 1-b, 0.50) |
218 | lut_mask.SetRampToLinear() | 218 | lut_mask.SetRampToLinear() |
219 | lut_mask.Build() | 219 | lut_mask.Build() |
220 | 220 |