Skip to content

Commit de413e2

Browse files
authored
Line2NodeMaterial: Remove unused lineWidth property. (#31401)
* Update Line2NodeMaterial.js In the global environment of three.js, the `lineWidth` in `Line2NodeMaterial` does not take effect and is essentially ineffective. To modify the line width, it is necessary to use the `linewidth` setting. Additionally, neither `Material` nor `NodeMaterial` contains a `linewidth` property. Therefore, the `lineWidth` property in `Line2NodeMaterial` should be changed to `linewidth`, and its default value should be set to 1. * Update Line2NodeMaterial.js delete `linewidth` property.
1 parent 99582ed commit de413e2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/materials/nodes/Line2NodeMaterial.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,6 @@ class Line2NodeMaterial extends NodeMaterial {
6666
*/
6767
this.dashOffset = 0;
6868

69-
/**
70-
* The line width.
71-
*
72-
* @type {number}
73-
* @default 0
74-
*/
75-
this.lineWidth = 1;
76-
7769
/**
7870
* Defines the lines color.
7971
*

0 commit comments

Comments
 (0)