diff --git a/TweakBrush.cpp b/TweakBrush.cpp index 5df95a82..98848518 100644 --- a/TweakBrush.cpp +++ b/TweakBrush.cpp @@ -172,7 +172,7 @@ void TweakStroke::updateStroke(TweakPickInfo& pickInfo) { refBrush->brushAction(m, pickInfo, nullptr, nPts1, outPositions[m]); for (int i = 0; i < nPts1; i++) - addPoint(m, refBrush->CachedPointIndex(i), outPositions[m][i]); + addPoint(m, refBrush->CachedPointIndex(m, i), outPositions[m][i]); } } else { diff --git a/TweakBrush.h b/TweakBrush.h index e1c97f29..9f75fe8c 100644 --- a/TweakBrush.h +++ b/TweakBrush.h @@ -182,7 +182,7 @@ class TweakBrush { bLiveNormals = newLiveNormals; } - virtual int CachedPointIndex(int) { + virtual int CachedPointIndex(mesh*, int) { return 0; } @@ -357,7 +357,7 @@ class TB_XForm : public TweakBrush { virtual ~TB_XForm(); void GetWorkingPlane(Vector3& outPlaneNormal, float& outPlaneDist); - int CachedPointIndex(int query) { + int CachedPointIndex(mesh*, int query) { return query; } void SetXFormType(int type) {