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:
authorTon Roosendaal <ton@blender.org>2007-11-09 19:02:31 +0300
committerTon Roosendaal <ton@blender.org>2007-11-09 19:02:31 +0300
commit072cb52a79d498b01cfdd7081f0bacfe628d9a71 (patch)
treeb769d06753599a6c9348b9d866a8e91f452ceae3 /source/blender/src/transform_manipulator.c
parentd1dbf41f6c5143c349e6ecbe5a2f64e04765d880 (diff)
Feature: transform manipulator (align normal option) aligns with bezier
handles now. Needed & useful for modeling trees here...
Diffstat (limited to 'source/blender/src/transform_manipulator.c')
-rw-r--r--source/blender/src/transform_manipulator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/transform_manipulator.c b/source/blender/src/transform_manipulator.c
index 8035cbb7d76..f1d4833d0ff 100644
--- a/source/blender/src/transform_manipulator.c
+++ b/source/blender/src/transform_manipulator.c
@@ -311,18 +311,22 @@ int calc_manipulator_stats(ScrArea *sa)
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++;
}
}