Skip to content

Commit 8db8014

Browse files
committed
Use pad background color when drawing geometry inside pad
1 parent a92c937 commit 8db8014

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/geom/TGeoPainter.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3544,12 +3544,15 @@ class TGeoPainter extends ObjectPainter {
35443544
if (!this._scene) {
35453545
this._first_drawing = true;
35463546

3547-
this._on_pad = !!this.getPadPainter();
3547+
let pp = this.getPadPainter();
3548+
3549+
this._on_pad = !!pp;
35483550

35493551
if (this._on_pad) {
35503552
let size, render3d, fp;
35513553
promise = ensureTCanvas(this,'3d').then(() => {
3552-
3554+
if (pp.fillatt?.color)
3555+
this.ctrl.background = pp.fillatt.color;
35533556
fp = this.getFramePainter();
35543557

35553558
render3d = getRender3DKind();

0 commit comments

Comments
 (0)