Skip to content

Commit

Permalink
Fixed move brush after multi-brush feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Feb 21, 2016
1 parent 321c719 commit 0014c32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TweakBrush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions TweakBrush.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class TweakBrush {
bLiveNormals = newLiveNormals;
}

virtual int CachedPointIndex(int) {
virtual int CachedPointIndex(mesh*, int) {
return 0;
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0014c32

Please sign in to comment.