Commit ca212a828f40f6d34df53ad304683d5b6218eeda

Authored by Renan
1 parent 97f76e21
Exists in master

FIX: SetNewColor

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/viewer_volume.py
... ... @@ -707,7 +707,7 @@ class Viewer(wx.Panel):
707 707 self.index = False
708 708  
709 709 def SetNewColor(self, index, color):
710   - self.staticballs[index].GetProperty().SetColor(color)
  710 + self.staticballs[index].GetProperty().SetColor([round(s/255.0, 3) for s in color])
711 711 self.Refresh()
712 712  
713 713 def OnTargetMarkerTransparency(self, status, index):
... ...