Skip to content

Commit

Permalink
Enable nurbs curve noise
Browse files Browse the repository at this point in the history
  • Loading branch information
tbttfox committed Nov 8, 2022
1 parent 717af47 commit d64a3ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/blurNoise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,16 @@ MStatus blurNoise::deform(
allNorms[i++] = tnorms[idx];
}
}
else if (outType == MFnData::kNurbsCurve) {
// Get the transform in objects space, and we go in the +- y direction
MMatrix inSpace = wmat.inverse() * mtm.asMatrix();
MVector inSpaceNormD(inSpace[1]);
MFloatVector inSpaceNorm(inSpaceNormD);

for (int i = 0; i < allNorms.length(); ++i){
allNorms[i] = inSpaceNorm;
}
}
else {
// Only mesh and nurbs supported
return MStatus::kFailure;
Expand Down

0 comments on commit d64a3ef

Please sign in to comment.