Skip to content

Commit 7cda526

Browse files
committed
Fix - problem with 3D error and superimposing
1 parent e96e814 commit 7cda526

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/JSRoot3DPainter.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@
16161616
return tip;
16171617
}
16181618

1619-
this.toplevel.add(line);
1619+
main.toplevel.add(line);
16201620
}
16211621

16221622

@@ -3435,6 +3435,7 @@
34353435

34363436
var rootcolor = this.GetObject().fFillColor,
34373437
fillcolor = JSROOT.Painter.root_colors[rootcolor],
3438+
main = this.main_painter(),
34383439
buffer_size = 0, use_lambert = false,
34393440
use_helper = false, use_colors = false, use_opacity = 1, use_scale = true,
34403441
single_bin_verts, single_bin_norms,
@@ -3712,7 +3713,7 @@
37123713
return tip;
37133714
}
37143715

3715-
this.toplevel.add(combined_bins);
3716+
main.toplevel.add(combined_bins);
37163717

37173718
if (helper_kind[nseq] > 0) {
37183719
var helper_geom = new THREE.BufferGeometry();
@@ -3729,7 +3730,7 @@
37293730
helper_material = new THREE.LineBasicMaterial( { color: lcolor } ),
37303731
lines = new THREE.LineSegments(helper_geom, helper_material );
37313732

3732-
this.toplevel.add(lines);
3733+
main.toplevel.add(lines);
37333734
}
37343735
}
37353736
}

0 commit comments

Comments
 (0)