Commit: 9d882031014abdd6daafe3a1235cd263edbc58fc
Author: Sergey Sharybin
Date: Thu Jan 9 23:51:24 2014 +0600
https://developer.blender.org/rB9d882031014abdd6daafe3a1235cd263edbc58fc
Code cleanup: no need to check display list elements in texture space match
===================================================================
M source/blender/editors/curve/editcurve.c
===================================================================
diff --git a/source/blender/editors/curve/editcurve.c
b/source/blender/editors/curve/editcurve.c
index c132a1a..6d23459 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -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);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs