Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_view.c
| Show First 20 Lines • Show All 957 Lines • ▼ Show 20 Lines | |||||
| /** Implement #VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK. */ | /** Implement #VIEW3D_SELECT_FILTER_OBJECT_MODE_LOCK. */ | ||||
| static bool drw_select_filter_object_mode_lock(Object *ob, void *user_data) | static bool drw_select_filter_object_mode_lock(Object *ob, void *user_data) | ||||
| { | { | ||||
| const Object *obact = user_data; | const Object *obact = user_data; | ||||
| return BKE_object_is_mode_compat(ob, obact->mode); | return BKE_object_is_mode_compat(ob, obact->mode); | ||||
| } | } | ||||
| /** Implement #VIEW3D_SELECT_FILTER_WPAINT_POSE_MODE_LOCK for special case when | /** | ||||
| * we want to select pose bones (this doesn't switch modes). */ | * Implement #VIEW3D_SELECT_FILTER_WPAINT_POSE_MODE_LOCK for special case when | ||||
| * we want to select pose bones (this doesn't switch modes). | |||||
| */ | |||||
| static bool drw_select_filter_object_mode_lock_for_weight_paint(Object *ob, void *user_data) | static bool drw_select_filter_object_mode_lock_for_weight_paint(Object *ob, void *user_data) | ||||
| { | { | ||||
| LinkNode *ob_pose_list = user_data; | LinkNode *ob_pose_list = user_data; | ||||
| return ob_pose_list && (BLI_linklist_index(ob_pose_list, DEG_get_original_object(ob)) != -1); | return ob_pose_list && (BLI_linklist_index(ob_pose_list, DEG_get_original_object(ob)) != -1); | ||||
| } | } | ||||
| /** | /** | ||||
| * \warning be sure to account for a negative return value | * \warning be sure to account for a negative return value | ||||
| ▲ Show 20 Lines • Show All 705 Lines • Show Last 20 Lines | |||||