Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 3,522 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| PTCacheEdit *edit = PE_get_current(scene, ob); | PTCacheEdit *edit = PE_get_current(scene, ob); | ||||
| PE_mirror_x(scene, ob, 0); | PE_mirror_x(scene, ob, 0); | ||||
| update_world_cos(ob, edit); | update_world_cos(ob, edit); | ||||
| psys_free_path_cache(NULL, edit); | |||||
| WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, ob); | WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, ob); | ||||
| BKE_particle_batch_cache_dirty_tag(edit->psys, BKE_PARTICLE_BATCH_DIRTY_ALL); | |||||
| DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void PARTICLE_OT_mirror(wmOperatorType *ot) | void PARTICLE_OT_mirror(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ▲ Show 20 Lines • Show All 2,002 Lines • Show Last 20 Lines | |||||