Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/pose_select.c
| Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | if (PBONE_SELECTABLE(arm, pchan->bone)) { | ||||
| /* send necessary notifiers */ | /* send necessary notifiers */ | ||||
| WM_main_add_notifier(NC_GEOM | ND_DATA, ob); | WM_main_add_notifier(NC_GEOM | ND_DATA, ob); | ||||
| } | } | ||||
| } | } | ||||
| /* called from editview.c, for mode-less pose selection */ | /* called from editview.c, for mode-less pose selection */ | ||||
| /* assumes scene obact and basact is still on old situation */ | /* assumes scene obact and basact is still on old situation */ | ||||
| bool ED_do_pose_selectbuffer( | bool ED_do_pose_selectbuffer( | ||||
| Scene *scene, SceneLayer *sl, Base *base, const unsigned int *buffer, short hits, | Scene *scene, ViewLayer *sl, Base *base, const unsigned int *buffer, short hits, | ||||
| bool extend, bool deselect, bool toggle, bool do_nearest) | bool extend, bool deselect, bool toggle, bool do_nearest) | ||||
| { | { | ||||
| Object *ob = base->object; | Object *ob = base->object; | ||||
| Bone *nearBone; | Bone *nearBone; | ||||
| if (!ob || !ob->pose) return 0; | if (!ob || !ob->pose) return 0; | ||||
| nearBone = get_bone_from_selectbuffer(scene, base, buffer, hits, 1, do_nearest); | nearBone = get_bone_from_selectbuffer(scene, base, buffer, hits, 1, do_nearest); | ||||
| ▲ Show 20 Lines • Show All 807 Lines • Show Last 20 Lines | |||||