Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-08-28 14:43:17 +0400
committerJoshua Leung <aligorith@gmail.com>2008-08-28 14:43:17 +0400
commitbf7387b2d8a00d046dc99425dc602e67bc5aef0a (patch)
tree7cc3ec9f2f69da9c6ddd6ad1e68bb8d4051e2c44
parent84d1dfb89b3f90ac656aca7f0c3d901351d4ea88 (diff)
GPencil Bezier Curve Conversion:
Now sets vector/free handles by default
-rw-r--r--source/blender/src/gpencil.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/src/gpencil.c b/source/blender/src/gpencil.c
index 150a5548fcf..0148ace20d4 100644
--- a/source/blender/src/gpencil.c
+++ b/source/blender/src/gpencil.c
@@ -785,7 +785,7 @@ static void gp_layer_to_bezier (bGPDlayer *gpl, bGPDstroke *gps, Curve *cu)
VecCopyf(bezt->vec[2], p3d);
/* set settings */
- bezt->h1= bezt->h2= HD_ALIGN; // fixme...
+ bezt->h1= bezt->h2= HD_FREE;
bezt->f1= bezt->f2= bezt->f3= SELECT;
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;
Object *ob;
Curve *cu;
- char name[140];
/* error checking */
if (ELEM3(NULL, gpd, gpl, gpf))
@@ -815,8 +814,7 @@ static void gp_layer_to_curve (bGPdata *gpd, bGPDlayer *gpl, short mode)
return;
/* initialise the curve */
- sprintf(name, "GP_%s", gpl->info);
- cu= add_curve(name, 1);
+ cu= add_curve(gpl->info, 1);
cu->flag |= CU_3D;
/* init the curve object (remove rotation and assign curve data to it) */