[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12539] trunk/blender/source/blender/src/ transform_manipulator.c: Feature: transform manipulator ( align normal option) aligns with bezier

Ton Roosendaal ton at blender.org
Fri Nov 9 17:02:31 CET 2007


Revision: 12539
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12539
Author:   ton
Date:     2007-11-09 17:02:31 +0100 (Fri, 09 Nov 2007)

Log Message:
-----------
Feature: transform manipulator (align normal option) aligns with bezier 
handles now. Needed & useful for modeling trees here...

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

Modified: trunk/blender/source/blender/src/transform_manipulator.c
===================================================================
--- trunk/blender/source/blender/src/transform_manipulator.c	2007-11-09 15:56:41 UTC (rev 12538)
+++ trunk/blender/source/blender/src/transform_manipulator.c	2007-11-09 16:02:31 UTC (rev 12539)
@@ -311,18 +311,22 @@
 						if( (bezt->f1 & SELECT) + (bezt->f2 & SELECT) + (bezt->f3 & SELECT) > SELECT ) {
 							calc_tw_center(bezt->vec[1]);
 							totsel++;
+							VecSubf(normal, bezt->vec[0], bezt->vec[2]);
 						}
 						else {
 							if(bezt->f1) {
 								calc_tw_center(bezt->vec[0]);
+								VecSubf(normal, bezt->vec[0], bezt->vec[1]);
 								totsel++;
 							}
 							if(bezt->f2) {
 								calc_tw_center(bezt->vec[1]);
+								VecSubf(normal, bezt->vec[0], bezt->vec[2]);
 								totsel++;
 							}
 							if(bezt->f3) {
 								calc_tw_center(bezt->vec[2]);
+								VecSubf(normal, bezt->vec[1], bezt->vec[2]);
 								totsel++;
 							}
 						}





More information about the Bf-blender-cvs mailing list