Skip to content

Commit

Permalink
CurveModifiers: typos (mrdoob#30145)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Rigaud <[email protected]>
  • Loading branch information
s-rigaud and Samuel Rigaud authored Dec 17, 2024
1 parent 0266f4c commit a7eff35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions examples/jsm/modifiers/CurveModifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ export class Flow {
constructor( mesh, numberOfCurves = 1 ) {

const obj3D = mesh.clone();
const splineTexure = initSplineTexture( numberOfCurves );
const uniforms = getUniforms( splineTexure );
const splineTexture = initSplineTexture( numberOfCurves );
const uniforms = getUniforms( splineTexture );
obj3D.traverse( function ( child ) {

if (
Expand Down Expand Up @@ -247,7 +247,7 @@ export class Flow {
this.curveLengthArray = new Array( numberOfCurves );

this.object3D = obj3D;
this.splineTexure = splineTexure;
this.splineTexture = splineTexture;
this.uniforms = uniforms;

}
Expand All @@ -259,7 +259,7 @@ export class Flow {
this.uniforms.spineLength.value = curveLength;
this.curveLengthArray[ index ] = curveLength;
this.curveArray[ index ] = curve;
updateSplineTexture( this.splineTexure, curve, index );
updateSplineTexture( this.splineTexture, curve, index );

}

Expand Down
8 changes: 4 additions & 4 deletions examples/jsm/modifiers/CurveModifierGPU.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export class Flow {
constructor( mesh, numberOfCurves = 1 ) {

const obj3D = mesh.clone();
const splineTexure = initSplineTexture( numberOfCurves );
const uniforms = getUniforms( splineTexure );
const splineTexture = initSplineTexture( numberOfCurves );
const uniforms = getUniforms( splineTexture );

obj3D.traverse( function ( child ) {

Expand Down Expand Up @@ -207,7 +207,7 @@ export class Flow {
this.curveLengthArray = new Array( numberOfCurves );

this.object3D = obj3D;
this.splineTexure = splineTexure;
this.splineTexture = splineTexture;
this.uniforms = uniforms;

}
Expand All @@ -222,7 +222,7 @@ export class Flow {
this.curveLengthArray[ index ] = curveLength;
this.curveArray[ index ] = curve;

updateSplineTexture( this.splineTexure, curve, index );
updateSplineTexture( this.splineTexture, curve, index );

}

Expand Down

0 comments on commit a7eff35

Please sign in to comment.