Code cleanup: no need to check display list elements in texture space match
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 9 Jan 2014 17:51:24 +0000 (23:51 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 13 Jan 2014 09:57:51 +0000 (15:57 +0600)
source/blender/editors/curve/editcurve.c

index c132a1a17b67aeb4470afbc08a33ecdc1c7f5890..6d234598bf6df60722de5f04965413700d633e1c 100644 (file)
@@ -6910,7 +6910,7 @@ static int match_texture_space_exec(bContext *C, wmOperator *UNUSED(op))
        float min[3], max[3], size[3], loc[3];
        int a;
 
-       if (ELEM(NULL, object->curve_cache, object->curve_cache->disp.first)) {
+       if (object->curve_cache == NULL) {
                BKE_displist_make_curveTypes(scene, object, FALSE);
        }