Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/particle.c
| Show First 20 Lines • Show All 2,411 Lines • ▼ Show 20 Lines | for (eff = effectors->first; eff; eff = eff->next) { | ||||
| if (guidetime > 1.0f) { | if (guidetime > 1.0f) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| cu = (Curve *)eff->ob->data; | cu = (Curve *)eff->ob->data; | ||||
| if (pd->flag & PFIELD_GUIDE_PATH_ADD) { | if (pd->flag & PFIELD_GUIDE_PATH_ADD) { | ||||
| if (where_on_path( | if (BKE_where_on_path( | ||||
| eff->ob, data->strength * guidetime, guidevec, guidedir, NULL, &radius, &weight) == | eff->ob, data->strength * guidetime, guidevec, guidedir, NULL, &radius, &weight) == | ||||
| 0) { | 0) { | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| if (where_on_path(eff->ob, guidetime, guidevec, guidedir, NULL, &radius, &weight) == 0) { | if (BKE_where_on_path(eff->ob, guidetime, guidevec, guidedir, NULL, &radius, &weight) == | ||||
| 0) { | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| } | } | ||||
| mul_m4_v3(eff->ob->obmat, guidevec); | mul_m4_v3(eff->ob->obmat, guidevec); | ||||
| mul_mat3_m4_v3(eff->ob->obmat, guidedir); | mul_mat3_m4_v3(eff->ob->obmat, guidedir); | ||||
| normalize_v3(guidedir); | normalize_v3(guidedir); | ||||
| ▲ Show 20 Lines • Show All 2,982 Lines • Show Last 20 Lines | |||||