[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16283] trunk/blender/source/blender/src/ gpencil.c: GPencil Bezier Curve Conversion:

Joshua Leung aligorith at gmail.com
Thu Aug 28 12:43:42 CEST 2008


Revision: 16283
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16283
Author:   aligorith
Date:     2008-08-28 12:43:17 +0200 (Thu, 28 Aug 2008)

Log Message:
-----------
GPencil Bezier Curve Conversion:

Now sets vector/free handles by default

Modified Paths:
--------------
    trunk/blender/source/blender/src/gpencil.c

Modified: trunk/blender/source/blender/src/gpencil.c
===================================================================
--- trunk/blender/source/blender/src/gpencil.c	2008-08-28 10:28:06 UTC (rev 16282)
+++ trunk/blender/source/blender/src/gpencil.c	2008-08-28 10:43:17 UTC (rev 16283)
@@ -785,7 +785,7 @@
 		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 @@
 	bGPDstroke *gps;
 	Object *ob;
 	Curve *cu;
-	char name[140];
 	
 	/* error checking */
 	if (ELEM3(NULL, gpd, gpl, gpf))
@@ -815,8 +814,7 @@
 		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) */





More information about the Bf-blender-cvs mailing list