Skip to content

Commit 8a4871a

Browse files
committed
Fix - problem with TH1 drawing in 3D mode
1 parent c9464e0 commit 8a4871a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/JSRoot3DPainter.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2722,6 +2722,8 @@
27222722
JSROOT.Painter.TH1Painter_Draw3D = function(call_back, resize) {
27232723
// function called with this as painter
27242724

2725+
this.mode3d = true;
2726+
27252727
var main = this.main_painter();
27262728

27272729
if (resize) {
@@ -2745,7 +2747,7 @@
27452747

27462748
main.Render3D();
27472749

2748-
main.UpdateStatWebCanvas();
2750+
this.UpdateStatWebCanvas();
27492751

27502752
this.AddKeysHandler();
27512753
}

0 commit comments

Comments
 (0)