Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 1,591 Lines • ▼ Show 20 Lines | void PE_update_object(Depsgraph *depsgraph, Scene *scene, Object *ob, int useflag) | ||||
| } | } | ||||
| 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 | /* 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 | * and flagging with PEK_HIDE will prevent selection. This might get restored once this is | ||||
| * supported in drawing (but doesn't make much sense for hair anyways). */ | * supported in drawing (but doesn't make much sense for hair anyways). */ | ||||
| if (edit->psys->part->type == PART_EMITTER) { | if (edit->psys && 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 { | ||||
| ▲ Show 20 Lines • Show All 3,866 Lines • Show Last 20 Lines | |||||