Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/armature_relations.c
| Show First 20 Lines • Show All 576 Lines • ▼ Show 20 Lines | static void separate_armature_bones(Object *ob, short sel) | ||||
| ED_armature_edit_free(ob->data); | ED_armature_edit_free(ob->data); | ||||
| } | } | ||||
| /* separate selected bones into their armature */ | /* separate selected bones into their armature */ | ||||
| static int separate_armature_exec(bContext *C, wmOperator *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); | ||||
| SceneLayer *sl = CTX_data_scene_layer(C); | ViewLayer *sl = CTX_data_view_layer(C); | ||||
| Object *obedit = CTX_data_edit_object(C); | Object *obedit = CTX_data_edit_object(C); | ||||
| Object *oldob, *newob; | Object *oldob, *newob; | ||||
| Base *oldbase, *newbase; | Base *oldbase, *newbase; | ||||
| /* sanity checks */ | /* sanity checks */ | ||||
| if (obedit == NULL) | if (obedit == NULL) | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| ▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines | |||||