Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager.c
| Show First 20 Lines • Show All 444 Lines • ▼ Show 20 Lines | static void drw_context_state_init(void) | ||||
| else { | else { | ||||
| DST.draw_ctx.object_edit = NULL; | DST.draw_ctx.object_edit = NULL; | ||||
| } | } | ||||
| /* Pose object. */ | /* Pose object. */ | ||||
| if (DST.draw_ctx.object_mode & OB_MODE_POSE) { | if (DST.draw_ctx.object_mode & OB_MODE_POSE) { | ||||
| DST.draw_ctx.object_pose = DST.draw_ctx.obact; | DST.draw_ctx.object_pose = DST.draw_ctx.obact; | ||||
| } | } | ||||
| else if (DST.draw_ctx.object_mode & OB_MODE_WEIGHT_PAINT) { | else if ((DST.draw_ctx.object_mode & OB_MODE_ALL_WEIGHT_PAINT)) { | ||||
| DST.draw_ctx.object_pose = BKE_object_pose_armature_get(DST.draw_ctx.obact); | DST.draw_ctx.object_pose = BKE_object_pose_armature_get(DST.draw_ctx.obact); | ||||
| } | } | ||||
| else { | else { | ||||
| DST.draw_ctx.object_pose = NULL; | DST.draw_ctx.object_pose = NULL; | ||||
| } | } | ||||
| DST.draw_ctx.sh_cfg = GPU_SHADER_CFG_DEFAULT; | DST.draw_ctx.sh_cfg = GPU_SHADER_CFG_DEFAULT; | ||||
| if (RV3D_CLIPPING_ENABLED(DST.draw_ctx.v3d, DST.draw_ctx.rv3d)) { | if (RV3D_CLIPPING_ENABLED(DST.draw_ctx.v3d, DST.draw_ctx.rv3d)) { | ||||
| ▲ Show 20 Lines • Show All 2,472 Lines • Show Last 20 Lines | |||||