From ca212a828f40f6d34df53ad304683d5b6218eeda Mon Sep 17 00:00:00 2001 From: Renan Date: Thu, 30 Sep 2021 15:05:39 +0300 Subject: [PATCH] FIX: SetNewColor --- invesalius/data/viewer_volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/data/viewer_volume.py b/invesalius/data/viewer_volume.py index 8f02c25..636b8d4 100644 --- a/invesalius/data/viewer_volume.py +++ b/invesalius/data/viewer_volume.py @@ -707,7 +707,7 @@ class Viewer(wx.Panel): self.index = False def SetNewColor(self, index, color): - self.staticballs[index].GetProperty().SetColor(color) + self.staticballs[index].GetProperty().SetColor([round(s/255.0, 3) for s in color]) self.Refresh() def OnTargetMarkerTransparency(self, status, index): -- libgit2 0.21.2