Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/effect.c
| Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | if (cu->flag & CU_PATH) { | ||||
| mul_m4_v3(eff->ob->obmat, eff->guide_loc); | mul_m4_v3(eff->ob->obmat, eff->guide_loc); | ||||
| mul_mat3_m4_v3(eff->ob->obmat, eff->guide_dir); | mul_mat3_m4_v3(eff->ob->obmat, eff->guide_dir); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else if (eff->pd->shape == PFIELD_SHAPE_SURFACE) { | else if (eff->pd->shape == PFIELD_SHAPE_SURFACE) { | ||||
| eff->surmd = (SurfaceModifierData *)BKE_modifiers_findby_type(eff->ob, eModifierType_Surface); | eff->surmd = (SurfaceModifierData *)BKE_modifiers_findby_type(eff->ob, eModifierType_Surface); | ||||
| if (eff->ob->type == OB_CURVE) { | if (eff->ob->type == OB_CURVE) { | ||||
| /* solution [2]: force rebuilding mesh & bvhtree here. */ | |||||
| // BKE_displist_make_curveTypes(depsgraph, eff->scene, eff->ob, false, false); | |||||
| eff->flag |= PE_USE_NORMAL_DATA; | eff->flag |= PE_USE_NORMAL_DATA; | ||||
| } | } | ||||
| } | } | ||||
| else if (eff->psys) { | else if (eff->psys) { | ||||
| psys_update_particle_tree(eff->psys, ctime); | psys_update_particle_tree(eff->psys, ctime); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,165 Lines • Show Last 20 Lines | |||||