Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 5,504 Lines • ▼ Show 20 Lines | if (!is_mode_set) { | ||||
| ED_object_particle_edit_mode_enter_ex(depsgraph, scene, ob); | ED_object_particle_edit_mode_enter_ex(depsgraph, scene, ob); | ||||
| } | } | ||||
| else { | else { | ||||
| ED_object_particle_edit_mode_exit_ex(scene, ob); | ED_object_particle_edit_mode_exit_ex(scene, ob); | ||||
| } | } | ||||
| 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 182 Lines • Show Last 20 Lines | |||||