diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-03-21 04:10:32 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-03-21 04:10:32 +0300 |
commit | b7bdc6c7a11fdd9615c3d07f1b3b028fe47bbd57 (patch) | |
tree | 4f5168026f4914e5cb335585da586b102a0a51ff /source/blender/src/sculptmode.c | |
parent | 734db8cbffd0e7937879f698a65ced4589469b2a (diff) |
Fixed bug #8514, sculpt: pivot last and undo
Undoing in sculpt mode correctly returns to previous pivots now.
Diffstat (limited to 'source/blender/src/sculptmode.c')
-rw-r--r-- | source/blender/src/sculptmode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c index 3fda71bf828..715a0f47afa 100644 --- a/source/blender/src/sculptmode.c +++ b/source/blender/src/sculptmode.c @@ -1231,7 +1231,7 @@ void init_brushaction(BrushAction *a, short *mouse, short *pr_mouse) /* Set the pivot to allow the model to rotate around the center of the brush */ if(get_depth(mouse[0],mouse[1]) < 1.0) - VecCopyf(&sculpt_session()->pivot.x, a->symm.center_3d); + VecCopyf(sd->pivot, a->symm.center_3d); /* Now project the Up, Right, and Out normals from view to model coords */ unproject(zero_loc, 0, 0, 0); @@ -1692,7 +1692,7 @@ void sculpt(void) } else { do_symmetrical_brush_actions(a, mouse, mvalo); - unproject(&ss->pivot.x, mouse[0], mouse[1], a->depth); + unproject(sd->pivot, mouse[0], mouse[1], a->depth); } if(modifier_calculations || ob_get_keyblock(ob)) |