forked from bartvdbraak/blender
GPencil Bezier Curve Conversion:
Now sets vector/free handles by default
This commit is contained in:
parent
84d1dfb89b
commit
bf7387b2d8
@ -785,7 +785,7 @@ static void gp_layer_to_bezier (bGPDlayer *gpl, bGPDstroke *gps, Curve *cu)
|
|||||||
VecCopyf(bezt->vec[2], p3d);
|
VecCopyf(bezt->vec[2], p3d);
|
||||||
|
|
||||||
/* set settings */
|
/* set settings */
|
||||||
bezt->h1= bezt->h2= HD_ALIGN; // fixme...
|
bezt->h1= bezt->h2= HD_FREE;
|
||||||
bezt->f1= bezt->f2= bezt->f3= SELECT;
|
bezt->f1= bezt->f2= bezt->f3= SELECT;
|
||||||
bezt->radius = bezt->weight = pt->pressure * gpl->thickness;
|
bezt->radius = bezt->weight = pt->pressure * gpl->thickness;
|
||||||
}
|
}
|
||||||
@ -804,7 +804,6 @@ static void gp_layer_to_curve (bGPdata *gpd, bGPDlayer *gpl, short mode)
|
|||||||
bGPDstroke *gps;
|
bGPDstroke *gps;
|
||||||
Object *ob;
|
Object *ob;
|
||||||
Curve *cu;
|
Curve *cu;
|
||||||
char name[140];
|
|
||||||
|
|
||||||
/* error checking */
|
/* error checking */
|
||||||
if (ELEM3(NULL, gpd, gpl, gpf))
|
if (ELEM3(NULL, gpd, gpl, gpf))
|
||||||
@ -815,8 +814,7 @@ static void gp_layer_to_curve (bGPdata *gpd, bGPDlayer *gpl, short mode)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* initialise the curve */
|
/* initialise the curve */
|
||||||
sprintf(name, "GP_%s", gpl->info);
|
cu= add_curve(gpl->info, 1);
|
||||||
cu= add_curve(name, 1);
|
|
||||||
cu->flag |= CU_3D;
|
cu->flag |= CU_3D;
|
||||||
|
|
||||||
/* init the curve object (remove rotation and assign curve data to it) */
|
/* init the curve object (remove rotation and assign curve data to it) */
|
||||||
|
Loading…
Reference in New Issue
Block a user