Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 1,619 Lines • ▼ Show 20 Lines | if (pe_x_mirror(ob)) { | ||||
| PE_apply_mirror(ob, edit->psys); | PE_apply_mirror(ob, edit->psys); | ||||
| } | } | ||||
| if (edit->psys) { | if (edit->psys) { | ||||
| update_world_cos(ob, edit); | update_world_cos(ob, edit); | ||||
| } | } | ||||
| if (pset->flag & PE_AUTO_VELOCITY) { | if (pset->flag & PE_AUTO_VELOCITY) { | ||||
| update_velocities(edit); | update_velocities(edit); | ||||
| } | } | ||||
| /* Only do this for emitter particles because drawing PE_FADE_TIME is not respected in 2.8 yet | |||||
| * and flagging with PEK_HIDE will prevent selection. This might get restored once this is | |||||
| * supported in drawing (but doesnt make much sense for hair anyways). */ | |||||
| if (edit->psys->part->type == PART_EMITTER) { | |||||
| PE_hide_keys_time(scene, edit, CFRA); | PE_hide_keys_time(scene, edit, CFRA); | ||||
| } | |||||
| /* regenerate path caches */ | /* regenerate path caches */ | ||||
| psys_cache_edit_paths(depsgraph, scene, ob, edit, CFRA, G.is_rendering); | psys_cache_edit_paths(depsgraph, scene, ob, edit, CFRA, G.is_rendering); | ||||
| /* disable update flag */ | /* disable update flag */ | ||||
| LOOP_POINTS | LOOP_POINTS | ||||
| { | { | ||||
| point->flag &= ~PEP_EDIT_RECALC; | point->flag &= ~PEP_EDIT_RECALC; | ||||
| ▲ Show 20 Lines • Show All 3,899 Lines • Show Last 20 Lines | |||||