diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-12-25 11:52:57 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-12-25 11:52:57 +0300 |
commit | dd5077060efa99412112ad27c0db4e4c6668c3e0 (patch) | |
tree | 85a2b6c1ce5e12873245138886b552824616cb38 /source/blender/src/space.c | |
parent | 5aabafeb9944b2ed27b1a9158154f134e0d2f150 (diff) |
Cleanup of the SDNA SculptData struct. Moved a lot of data that isn't saved into a separate SculptSession struct (outside of SDNA.)
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r-- | source/blender/src/space.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c index a9de9e01ea8..6e0d1667bff 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -1068,7 +1068,7 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) if(!mouse_in_header(sa)) { if(!G.obedit && (G.f & G_SCULPTMODE)) { - if(G.scene->sculptdata.propset) { + if(sculpt_session()->propset) { sculptmode_propset(event); return; } @@ -1212,13 +1212,13 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) else if(!G.obedit && (G.f & G_SCULPTMODE)) { SculptData *sd= &G.scene->sculptdata; BrushData *br= sculptmode_brush(); - Mesh *me= get_mesh(sd->active_ob); + Mesh *me= get_mesh(OBACT); char update_prop= 0; switch(event) { case LEFTMOUSE: if(G.qual==LR_SHIFTKEY+LR_CTRLKEY) sculptmode_pmv(0); - else if(!G.scene->sculptdata.propset) + else if(!sculpt_session()->propset) sculpt(); break; /* View */ |