Bugfix: when editing a Curve Guide, and deleting all but one control point,
the path code crashed.
This commit is contained in:
@@ -338,11 +338,10 @@ ListBase *pdInitEffectors(unsigned int layer)
|
||||
if(ob->type==OB_CURVE) {
|
||||
Curve *cu= ob->data;
|
||||
if(cu->flag & CU_PATH) {
|
||||
pEffectorCache *ec= MEM_callocN(sizeof(pEffectorCache), "effector cache");
|
||||
|
||||
if(cu->path==NULL || cu->path->data==NULL)
|
||||
makeDispListCurveTypes(ob, 0);
|
||||
if(cu->path && cu->path->data) {
|
||||
pEffectorCache *ec= MEM_callocN(sizeof(pEffectorCache), "effector cache");
|
||||
ec->ob= ob;
|
||||
BLI_addtail(&listb, ec);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user