Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2011-03-12 05:12:02 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2011-03-12 05:12:02 +0300
commitbbf6603961b656b3520acbab012683257683896e (patch)
treedc875477def8113243d212ccb6480bf5e070b133 /source/blender/editors/sculpt_paint/sculpt_undo.c
parent80de27914d4d0cedf8a46d960b496db7126d118e (diff)
== 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.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_undo.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_undo.c4
1 files changed, 2 insertions, 2 deletions
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;