Skip to content

Commit

Permalink
rework
Browse files Browse the repository at this point in the history
  • Loading branch information
aardgoose committed Jan 23, 2024
1 parent 5fa28cb commit d8054a0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/jsm/nodes/utils/RotateNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ class RotateNode extends TempNode {

}

getNodeType( builder ) {

return this.positionNode.getNodeType( builder );

}

setup( builder ) {

const { rotationNode, positionNode } = this;

const nodeType = positionNode.getNodeType( builder );

this.nodeType = nodeType;
const nodeType = this.getNodeType( builder );

if ( nodeType === 'vec2' ) {

Expand Down

0 comments on commit d8054a0

Please sign in to comment.