Fix crash on file load with linked groups and curve bevel.

This isn't a proper fix, curve_cache should not be NULL, but it makes it
possible to open the file at least.
This commit is contained in:
2014-02-17 22:01:38 +01:00
parent f1aeb2ccf4
commit 1a4b718582

View File

@@ -1647,9 +1647,12 @@ void BKE_curve_bevel_make(Scene *scene, Object *ob, ListBase *disp, int forRende
BKE_displist_make_curveTypes_forRender(scene, cu->bevobj, &bevdisp, NULL, 0, renderResolution);
dl = bevdisp.first;
}
else if (cu->bevobj->curve_cache) {
dl = cu->bevobj->curve_cache->disp.first;
}
else {
BLI_assert(cu->bevobj->curve_cache != NULL);
dl = cu->bevobj->curve_cache->disp.first;
dl = NULL;
}
while (dl) {