Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/armature/armature_select.c
| Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | void *get_nearest_bone(bContext *C, const int xy[2], bool findunsel) | ||||
| // rect.xmin = ... mouseco! | // rect.xmin = ... mouseco! | ||||
| rect.xmin = rect.xmax = xy[0]; | rect.xmin = rect.xmax = xy[0]; | ||||
| rect.ymin = rect.ymax = xy[1]; | rect.ymin = rect.ymax = xy[1]; | ||||
| hits = view3d_opengl_select(&eval_ctx, &vc, buffer, MAXPICKBUF, &rect, VIEW3D_SELECT_PICK_NEAREST); | hits = view3d_opengl_select(&eval_ctx, &vc, buffer, MAXPICKBUF, &rect, VIEW3D_SELECT_PICK_NEAREST); | ||||
| if (hits > 0) | if (hits > 0) | ||||
| return get_bone_from_selectbuffer(vc.scene, vc.scene_layer->basact, buffer, hits, findunsel, true); | return get_bone_from_selectbuffer(vc.scene, vc.view_layer->basact, buffer, hits, findunsel, true); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| /* **************** EditMode stuff ********************** */ | /* **************** EditMode stuff ********************** */ | ||||
| /* called in space.c */ | /* called in space.c */ | ||||
| /* previously "selectconnected_armature" */ | /* previously "selectconnected_armature" */ | ||||
| ▲ Show 20 Lines • Show All 1,172 Lines • Show Last 20 Lines | |||||