Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| if (cu->pathlen) { | if (cu->pathlen) { | ||||
| ctime = cu->ctime / cu->pathlen; | ctime = cu->ctime / cu->pathlen; | ||||
| } | } | ||||
| else { | else { | ||||
| ctime = cu->ctime; | ctime = cu->ctime; | ||||
| } | } | ||||
| if (cu->flag & CU_PATH_CLAMP) { | |||||
| CLAMP(ctime, 0.0f, 1.0f); | |||||
| } | |||||
| unit_m4(r_mat); | unit_m4(r_mat); | ||||
| /* vec: 4 items! */ | /* vec: 4 items! */ | ||||
| if (BKE_where_on_path( | if (BKE_where_on_path( | ||||
| par, ctime, vec, dir, (cu->flag & CU_FOLLOW) ? quat : NULL, &radius, NULL)) { | par, ctime, vec, dir, (cu->flag & CU_FOLLOW) ? quat : NULL, &radius, NULL)) { | ||||
| if (cu->flag & CU_FOLLOW) { | if (cu->flag & CU_FOLLOW) { | ||||
| quat_apply_track(quat, ob->trackflag, ob->upflag); | quat_apply_track(quat, ob->trackflag, ob->upflag); | ||||
| normalize_qt(quat); | normalize_qt(quat); | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||