Skip to content

Commit cc8b010

Browse files
authored
Line2NodeMaterial: Rename useColor property to vertexColors (#32670)
1 parent 7cd43e0 commit cc8b010

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/materials/nodes/Line2NodeMaterial.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Line2NodeMaterial extends NodeMaterial {
5656
* @type {boolean}
5757
* @default false
5858
*/
59-
this.useColor = parameters.vertexColors;
59+
this.vertexColors = parameters.vertexColors;
6060

6161
/**
6262
* The dash offset.
@@ -133,7 +133,7 @@ class Line2NodeMaterial extends NodeMaterial {
133133
const { renderer } = builder;
134134

135135
const useAlphaToCoverage = this._useAlphaToCoverage;
136-
const useColor = this.useColor;
136+
const vertexColors = this.vertexColors;
137137
const useDash = this._useDash;
138138
const useWorldUnits = this._useWorldUnits;
139139

@@ -434,7 +434,7 @@ class Line2NodeMaterial extends NodeMaterial {
434434

435435
} else {
436436

437-
if ( useColor ) {
437+
if ( vertexColors ) {
438438

439439
const instanceColorStart = attribute( 'instanceColorStart' );
440440
const instanceColorEnd = attribute( 'instanceColorEnd' );

0 commit comments

Comments
 (0)