diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-21 06:30:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-21 06:30:19 +0400 |
commit | f6b13c83ab3e5f3ca7411747ca67a5468f6392ca (patch) | |
tree | a380bb81bf8b1bd480f443d1f078f7a82e255234 /source/blender/editors/space_view3d | |
parent | 89c7cf1a4938e8ae4008a9a9e1c90bac1a3f93c5 (diff) |
correct NULL pointer dereference with recent displist changes.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index e02e285ee58..26162651931 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -4050,7 +4050,7 @@ static bool drawDispList_nobackface(Scene *scene, View3D *v3d, RegionView3D *rv3 if (BKE_mball_is_basis(ob)) { lb = ob->curve_cache ? &ob->curve_cache->disp : NULL; - if (lb->first == NULL) { + if (ELEM(lb, lb->first, NULL)) { BKE_displist_make_mball(scene, ob); lb = &ob->curve_cache->disp; } |