Skip to content

Commit 999fe60

Browse files
committed
Use alternative fill color when line color of TGeoVolume is black
Signed-off-by: Sergey Linev <[email protected]>
1 parent 3eda9e8 commit 999fe60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/JSRootGeoPainter.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,8 +1410,12 @@
14101410

14111411
if (visible) {
14121412
var _transparent = false, _opacity = 1.0;
1413+
if ((volume.fFillColor > 1) && (volume.fLineColor == 1))
1414+
prop.fillcolor = JSROOT.Painter.root_colors[volume.fFillColor];
1415+
else
14131416
if (volume.fLineColor >= 0)
14141417
prop.fillcolor = JSROOT.Painter.root_colors[volume.fLineColor];
1418+
14151419
if (('fMedium' in volume) && (volume.fMedium !== null) &&
14161420
('fMaterial' in volume.fMedium) && (volume.fMedium.fMaterial !== null)) {
14171421
var fillstyle = volume.fMedium.fMaterial.fFillStyle;

0 commit comments

Comments
 (0)