Skip to content

Commit eb78ac9

Browse files
committed
Add protection when lego draw updated while zooming
1 parent cb54e63 commit eb78ac9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

scripts/JSRoot.hist3d.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@ JSROOT.define(['d3', 'painter', 'base3d', 'latex', 'hist'], (d3, jsrp, THREE, lt
667667
return tgtmesh;
668668
}
669669

670+
if (!this.geometry) return false;
671+
670672
if (!tgtmesh) {
671673
gg = this.geometry.clone();
672674
let pos = gg.getAttribute('position').array;

scripts/JSRoot.v7hist3d.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,8 @@ JSROOT.define(['d3', 'base3d', 'painter', 'latex', 'v7hist'], (d3, THREE, jsrp,
633633
return tgtmesh;
634634
}
635635

636+
if (!this.geometry) return false;
637+
636638
if (!tgtmesh) {
637639
gg = this.geometry.clone();
638640
let pos = gg.getAttribute('position').array;

0 commit comments

Comments
 (0)