Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/pose_mode.c
| Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Return true if armature should be handled by the pose mode engine. | * Return true if armature should be handled by the pose mode engine. | ||||
| */ | */ | ||||
| bool DRW_pose_mode_armature(Object *ob, Object *active_ob) | bool DRW_pose_mode_armature(Object *ob, Object *active_ob) | ||||
| { | { | ||||
| const DRWContextState *draw_ctx = DRW_context_state_get(); | const DRWContextState *draw_ctx = DRW_context_state_get(); | ||||
| /* Pode armature is handled by pose mode engine. */ | /* Pode armature is handled by pose mode engine. */ | ||||
| if ((ob == active_ob) && ((draw_ctx->object_mode & OB_MODE_POSE) != 0)) { | if (((ob == active_ob) || (ob->base_flag & BASE_SELECTED)) && | ||||
| ((draw_ctx->object_mode & OB_MODE_POSE) != 0)) | |||||
| { | |||||
| return true; | return true; | ||||
| } | } | ||||
| /* Armature parent is also handled by pose mode engine. */ | /* Armature parent is also handled by pose mode engine. */ | ||||
| if ((active_ob != NULL) && ((draw_ctx->object_mode & OB_MODE_WEIGHT_PAINT) != 0)) { | if ((active_ob != NULL) && ((draw_ctx->object_mode & OB_MODE_WEIGHT_PAINT) != 0)) { | ||||
| if (ob == draw_ctx->object_pose) { | if (ob == draw_ctx->object_pose) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines | |||||