Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/object_mode.c
| Show First 20 Lines • Show All 1,734 Lines • ▼ Show 20 Lines | for (int i = 0; i < 2; i++) { | ||||
| { | { | ||||
| DRWShadingGroup *grp_axes; | DRWShadingGroup *grp_axes; | ||||
| sgl->origin_xform = buffer_instance_color_axes( | sgl->origin_xform = buffer_instance_color_axes( | ||||
| sgl->non_meshes, DRW_cache_bone_arrows_get(), &grp_axes, draw_ctx->sh_cfg); | sgl->non_meshes, DRW_cache_bone_arrows_get(), &grp_axes, draw_ctx->sh_cfg); | ||||
| DRW_shgroup_state_disable(grp_axes, DRW_STATE_DEPTH_LESS_EQUAL); | DRW_shgroup_state_disable(grp_axes, DRW_STATE_DEPTH_LESS_EQUAL); | ||||
| DRW_shgroup_state_enable(grp_axes, DRW_STATE_DEPTH_ALWAYS); | DRW_shgroup_state_enable(grp_axes, DRW_STATE_DEPTH_ALWAYS); | ||||
| DRW_shgroup_state_enable(grp_axes, DRW_STATE_WIRE_SMOOTH); | DRW_shgroup_state_enable(grp_axes, DRW_STATE_WIRE_SMOOTH); | ||||
| DRW_shgroup_state_enable(grp_axes, DRW_STATE_WIRE_MEDIUM); | |||||
| } | } | ||||
| /* Force Field Curve Guide End (here because of stipple) */ | /* Force Field Curve Guide End (here because of stipple) */ | ||||
| /* TODO port to shader stipple */ | /* TODO port to shader stipple */ | ||||
| geom = DRW_cache_screenspace_circle_get(); | geom = DRW_cache_screenspace_circle_get(); | ||||
| sgl->field_curve_end = buffer_instance_screen_aligned(sgl->non_meshes, geom, draw_ctx->sh_cfg); | sgl->field_curve_end = buffer_instance_screen_aligned(sgl->non_meshes, geom, draw_ctx->sh_cfg); | ||||
| /* Force Field Limits */ | /* Force Field Limits */ | ||||
| ▲ Show 20 Lines • Show All 2,180 Lines • Show Last 20 Lines | |||||