Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/edit_armature_mode.c
| Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | for (int i = 0; i < 2; i++) { | ||||
| psl->bone_envelope[i] = DRW_pass_create("Bone Envelope Outline Pass", state); | psl->bone_envelope[i] = DRW_pass_create("Bone Envelope Outline Pass", state); | ||||
| state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL | | state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL | | ||||
| DRW_STATE_BLEND_ALPHA; | DRW_STATE_BLEND_ALPHA; | ||||
| psl->relationship[i] = DRW_pass_create("Bone Relationship Pass", state); | psl->relationship[i] = DRW_pass_create("Bone Relationship Pass", state); | ||||
| } | } | ||||
| { | { | ||||
| DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WIRE_SMOOTH | DRW_STATE_BLEND_ALPHA; | DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WIRE_SMOOTH | DRW_STATE_WIRE_MEDIUM | | ||||
| DRW_STATE_BLEND_ALPHA; | |||||
| psl->bone_axes = DRW_pass_create("Bone Axes Pass", state); | psl->bone_axes = DRW_pass_create("Bone Axes Pass", state); | ||||
| } | } | ||||
| } | } | ||||
| static void EDIT_ARMATURE_cache_populate(void *vedata, Object *ob) | static void EDIT_ARMATURE_cache_populate(void *vedata, Object *ob) | ||||
| { | { | ||||
| bArmature *arm = ob->data; | bArmature *arm = ob->data; | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||