Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 4,521 Lines • ▼ Show 20 Lines | static int particle_edit_toggle_exec(bContext *C, wmOperator *op) | ||||
| } | } | ||||
| // ED_workspace_object_mode_sync_from_object(wm, workspace, ob); | // ED_workspace_object_mode_sync_from_object(wm, workspace, ob); | ||||
| DEG_id_tag_update(&ob->id, OB_RECALC_DATA | DEG_TAG_COPY_ON_WRITE); | DEG_id_tag_update(&ob->id, OB_RECALC_DATA | DEG_TAG_COPY_ON_WRITE); | ||||
| WM_msg_publish_rna_prop(mbus, &ob->id, ob, Object, mode); | WM_msg_publish_rna_prop(mbus, &ob->id, ob, Object, mode); | ||||
| WM_toolsystem_update_from_context_view3d(C); | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void PARTICLE_OT_particle_edit_toggle(wmOperatorType *ot) | void PARTICLE_OT_particle_edit_toggle(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Particle Edit Toggle"; | ot->name = "Particle Edit Toggle"; | ||||
| ot->idname = "PARTICLE_OT_particle_edit_toggle"; | ot->idname = "PARTICLE_OT_particle_edit_toggle"; | ||||
| ▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines | |||||