Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/curve_deform.c
| Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | if (where_on_path_deform(ob_curve, fac, loc, dir, new_quat, &radius)) { /* returns OK */ | ||||
| * positive side light, negative dark. | * positive side light, negative dark. | ||||
| * view with X up (default), from the angle that you can see 3 faces RGB colors (light), | * view with X up (default), from the angle that you can see 3 faces RGB colors (light), | ||||
| * anti-clockwise | * anti-clockwise | ||||
| * Notice X,Y,Z Up all have light colors and each ordered CCW. | * Notice X,Y,Z Up all have light colors and each ordered CCW. | ||||
| * | * | ||||
| * Now for Neg Up XYZ, the colors are all dark, and ordered clockwise - Campbell | * Now for Neg Up XYZ, the colors are all dark, and ordered clockwise - Campbell | ||||
| * | * | ||||
| * note: moved functions into quat_apply_track/vec_apply_track | * note: moved functions into quat_apply_track/vec_apply_track | ||||
| * */ | */ | ||||
| copy_qt_qt(quat, new_quat); | copy_qt_qt(quat, new_quat); | ||||
| copy_v3_v3(cent, co); | copy_v3_v3(cent, co); | ||||
| /* zero the axis which is not used, | /* zero the axis which is not used, | ||||
| * the big block of text above now applies to these 3 lines */ | * the big block of text above now applies to these 3 lines */ | ||||
| quat_apply_track(quat, | quat_apply_track(quat, | ||||
| axis, | axis, | ||||
| (ELEM(axis, 0, 2)) ? 1 : | (ELEM(axis, 0, 2)) ? 1 : | ||||
| ▲ Show 20 Lines • Show All 277 Lines • Show Last 20 Lines | |||||