Template retarget now works with normal conversion (not in Quick mode that is).

This commit is contained in:
Martin Poirier
2008-11-17 21:11:12 +00:00
parent 497c9b4ce7
commit 2d0a005aaa
2 changed files with 10 additions and 4 deletions

View File

@@ -3082,8 +3082,6 @@ void BIF_retargetArc(ReebArc *earc)
RIG_freeRigGraph((BGraph*)template_rigg);
RIG_freeRigGraph((BGraph*)rigg);
BIF_undo_push("Retarget Arc");
allqueue(REDRAWVIEW3D, 0);
}

View File

@@ -1802,7 +1802,15 @@ void sk_convert(SK_Sketch *sketch)
{
if (stk->selected == 1)
{
sk_convertStroke(stk);
if (G.scene->toolsettings->bone_sketching_convert == SK_CONVERT_RETARGET)
{
sk_retargetStroke(stk);
}
else
{
sk_convertStroke(stk);
}
allqueue(REDRAWBUTSEDIT, 0);
}
}
}
@@ -2519,8 +2527,8 @@ int sk_paint(SK_Sketch *sketch, short mbut)
else
{
sk_convertStroke(stk);
BIF_undo_push("Convert Sketch");
}
BIF_undo_push("Convert Sketch");
sk_removeStroke(sketch, stk);
allqueue(REDRAWBUTSEDIT, 0);
}