Skip to content

Commit c15111e

Browse files
committed
Do net set linewidth attribute for IE
Line width does not supported under IE
1 parent 8a3396d commit c15111e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/JSRoot3DPainter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@
795795
if (zgridx && (zgridx.length > 0)) {
796796

797797
// var material = new THREE.LineBasicMaterial({ color: 0x0, linewidth: 0.5 });
798-
var material = new THREE.LineDashedMaterial( { color: 0x0, dashSize: 10, gapSize: 2, linewidth: 0.5 } );
798+
var material = new THREE.LineDashedMaterial( { color: 0x0, dashSize: 10, gapSize: 2 } );
799799

800800
var geom = new THREE.BufferGeometry();
801801
geom.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array(zgridx), 3 ) );
@@ -816,7 +816,7 @@
816816
if (zgridy && (zgridy.length > 0)) {
817817

818818
// var material = new THREE.LineBasicMaterial({ color: 0x0, linewidth: 0.5 });
819-
var material = new THREE.LineDashedMaterial( { color: 0x0, dashSize: 10, gapSize: 2, linewidth: 0.5 } );
819+
var material = new THREE.LineDashedMaterial( { color: 0x0, dashSize: 10, gapSize: 2 } );
820820

821821
var geom = new THREE.BufferGeometry();
822822
geom.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array(zgridy), 3 ) );
@@ -1357,8 +1357,8 @@
13571357

13581358
var lcolor = JSROOT.Painter.root_colors[this.GetObject().fLineColor];
13591359

1360-
material = new THREE.LineBasicMaterial({ color: new THREE.Color(lcolor), linewidth: this.GetObject().fLineWidth });
1361-
1360+
material = new THREE.LineBasicMaterial({ color: new THREE.Color(lcolor) });
1361+
if (!JSROOT.browser.isIE) material.linewidth = this.GetObject().fLineWidth;
13621362
var line = new THREE.LineSegments(geometry, material);
13631363

13641364
/*
@@ -1912,7 +1912,7 @@
19121912
helper_geom.addAttribute( 'position', new THREE.BufferAttribute( helper_positions, 3 ) );
19131913
}
19141914

1915-
var helper_material = new THREE.LineBasicMaterial( { color: 0x000000, linewidth: 1.0 } );
1915+
var helper_material = new THREE.LineBasicMaterial( { color: 0x000000 } );
19161916

19171917
var lines = new THREE.LineSegments(helper_geom, helper_material );
19181918

0 commit comments

Comments
 (0)