From bbf6603961b656b3520acbab012683257683896e Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sat, 12 Mar 2011 02:12:02 +0000 Subject: == Sculpt == * Removed some fields from struct SculptSession: - Fields drawobject, projverts, and previous_r were completely unused - Field `ob' was really unnecessary, changed sculpt functions to pass the object rather than the SculptSession This removal of `ob' from SculptSession should should make it a little easier to continue generalizing paint/sculpt functionality. There should be no visible changes from cleanup. --- source/blender/editors/sculpt_paint/sculpt_undo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/sculpt_paint/sculpt_undo.c') diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 4e62c66c425..b463c77bbb7 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -246,10 +246,10 @@ SculptUndoNode *sculpt_undo_get_node(PBVHNode *node) return NULL; } -SculptUndoNode *sculpt_undo_push_node(SculptSession *ss, PBVHNode *node) +SculptUndoNode *sculpt_undo_push_node(Object *ob, PBVHNode *node) { ListBase *lb= undo_paint_push_get_list(UNDO_PAINT_MESH); - Object *ob= ss->ob; + SculptSession *ss = ob->sculpt; SculptUndoNode *unode; int totvert, allvert, totgrid, maxgrid, gridsize, *grids; -- cgit v1.2.3