Feature: transform manipulator (align normal option) aligns with bezier

handles now. Needed & useful for modeling trees here...
This commit is contained in:
Ton Roosendaal
2007-11-09 16:02:31 +00:00
parent d1dbf41f6c
commit 072cb52a79

View File

@@ -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++;
}
}