Skip to content

Commit 782d8f5

Browse files
sunagRuthySheffi
authored andcommitted
NodeMaterial: Execute setupVertex() if vertexNode is defined (mrdoob#31136)
1 parent 3ad4cdb commit 782d8f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/materials/nodes/NodeMaterial.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,9 @@ class NodeMaterial extends Material {
455455

456456
builder.addStack();
457457

458-
const vertexNode = this.vertexNode || this.setupVertex( builder );
458+
const mvp = this.setupVertex( builder );
459+
460+
const vertexNode = this.vertexNode || mvp;
459461

460462
builder.stack.outputNode = vertexNode;
461463

0 commit comments

Comments
 (0)