diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-12-26 02:52:17 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2006-12-26 02:52:17 +0300 |
commit | b27785c4df37d16ae3a2f052328afbc19efc7ec1 (patch) | |
tree | 6f274d9975e3ce2591d6932d5afab6a481d454dd /source/blender/src/drawview.c | |
parent | 3fe44bf83abe37ec19a1e7ec3873db37849c439e (diff) |
Fixed a number of crashes occuring when loading saved files with sculpt mode active. (mostly missing checks for a sculpt session.)
Diffstat (limited to 'source/blender/src/drawview.c')
-rw-r--r-- | source/blender/src/drawview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c index 7094bfdbc31..99643e11d6f 100644 --- a/source/blender/src/drawview.c +++ b/source/blender/src/drawview.c @@ -2745,8 +2745,8 @@ void drawview3dspace(ScrArea *sa, void *spacedata) persp(PERSP_WIN); // set ortho /* Draw Sculpt Mode brush */ - if(!G.obedit && (G.f & G_SCULPTMODE) && area_is_active_area(v3d->area)) { - PropsetData *pd= G.scene->sculptdata.session->propset; + if(!G.obedit && (G.f & G_SCULPTMODE) && area_is_active_area(v3d->area) && sculpt_session()) { + PropsetData *pd= sculpt_session()->propset; short r1=100, r2=100, r3=100; if(pd) { if(pd->mode == PropsetSize) { |