Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/armature_relations.c
| Context not available. | |||||
| } | } | ||||
| /* separate selected bones into their armature */ | /* separate selected bones into their armature */ | ||||
| static int separate_armature_exec(bContext *C, wmOperator *UNUSED(op)) | static int separate_armature_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| Context not available. | |||||
| ED_armature_to_edit(obedit); | ED_armature_to_edit(obedit); | ||||
| BKE_report(op->reports, RPT_INFO, "Separated bones"); | |||||
| /* note, notifier might evolve */ | /* note, notifier might evolve */ | ||||
| WM_event_add_notifier(C, NC_OBJECT | ND_POSE, obedit); | WM_event_add_notifier(C, NC_OBJECT | ND_POSE, obedit); | ||||
| Context not available. | |||||
| ot->description = "Isolate selected bones into a separate armature"; | ot->description = "Isolate selected bones into a separate armature"; | ||||
| /* callbacks */ | /* callbacks */ | ||||
| ot->invoke = WM_operator_confirm; | |||||
| ot->exec = separate_armature_exec; | ot->exec = separate_armature_exec; | ||||
| ot->poll = ED_operator_editarmature; | ot->poll = ED_operator_editarmature; | ||||
| Context not available. | |||||