[Bf-blender-cvs] [044a342] master: Fix a wrong check ls == NULL || lb->first == NULL
Sergey Sharybin
noreply at git.blender.org
Thu Nov 21 14:12:32 CET 2013
Commit: 044a342ecb6ec1377c91c0b3ab37aca5335fbc9d
Author: Sergey Sharybin
Date: Thu Nov 21 19:11:24 2013 +0600
http://developer.blender.org/rB044a342ecb6ec1377c91c0b3ab37aca5335fbc9d
Fix a wrong check ls == NULL || lb->first == NULL
===================================================================
M source/blender/editors/space_view3d/drawobject.c
===================================================================
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 2083da2..ee9ed96 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -4058,7 +4058,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 (ELEM(lb, lb->first, NULL)) {
+ if (ELEM(NULL, lb, lb->first)) {
BKE_displist_make_mball(scene, ob);
lb = &ob->curve_cache->disp;
}
More information about the Bf-blender-cvs
mailing list