Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_gizmo_armature.c
| Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static bool WIDGETGROUP_armature_spline_poll(const bContext *C, wmGizmoGroupType *UNUSED(gzgt)) | static bool WIDGETGROUP_armature_spline_poll(const bContext *C, wmGizmoGroupType *UNUSED(gzgt)) | ||||
| { | { | ||||
| Object *ob = BKE_object_pose_armature_get(CTX_data_active_object(C)); | Object *ob = BKE_object_pose_armature_get(CTX_data_active_object(C)); | ||||
| if (ob != NULL) { | if (ob != NULL) { | ||||
| const bArmature *arm = ob->data; | const bArmature *arm = ob->data; | ||||
| if (arm->drawtype == ARM_B_BONE) { | if (arm->drawtype == ARM_B_BONE) { | ||||
| if (arm->act_bone && arm->act_bone->segments > 1) { | bPoseChannel *pchan = BKE_pose_channel_active(ob); | ||||
| if (pchan && pchan->bone->segments > 1) { | |||||
| View3D *v3d = CTX_wm_view3d(C); | View3D *v3d = CTX_wm_view3d(C); | ||||
| if ((v3d->flag2 & V3D_RENDER_OVERRIDE) || | if ((v3d->flag2 & V3D_RENDER_OVERRIDE) || | ||||
| (v3d->gizmo_flag & (V3D_GIZMO_HIDE | V3D_GIZMO_HIDE_CONTEXT))) | (v3d->gizmo_flag & (V3D_GIZMO_HIDE | V3D_GIZMO_HIDE_CONTEXT))) | ||||
| { | { | ||||
| /* pass */ | /* pass */ | ||||
| } | } | ||||
| else { | else { | ||||
| return true; | return true; | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||