Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_armature.c
| Show First 20 Lines • Show All 1,222 Lines • ▼ Show 20 Lines | static void draw_armature_edit(Object *ob) | ||||
| bArmature *arm = ob->data; | bArmature *arm = ob->data; | ||||
| int index; | int index; | ||||
| const bool is_select = DRW_state_is_select(); | const bool is_select = DRW_state_is_select(); | ||||
| update_color(NULL); | update_color(NULL); | ||||
| const bool show_text = DRW_state_show_text(); | const bool show_text = DRW_state_show_text(); | ||||
| for (eBone = arm->edbo->first, index = 0; eBone; eBone = eBone->next, index++) { | for (eBone = arm->edbo->first, index = ob->select_color; eBone; eBone = eBone->next, index += 0x10000) { | ||||
| if (eBone->layer & arm->layer) { | if (eBone->layer & arm->layer) { | ||||
| if ((eBone->flag & BONE_HIDDEN_A) == 0) { | if ((eBone->flag & BONE_HIDDEN_A) == 0) { | ||||
| const int select_id = is_select ? index : (unsigned int)-1; | const int select_id = is_select ? index : (unsigned int)-1; | ||||
| const short constflag = 0; | const short constflag = 0; | ||||
| /* catch exception for bone with hidden parent */ | /* catch exception for bone with hidden parent */ | ||||
| int boneflag = eBone->flag; | int boneflag = eBone->flag; | ||||
| ▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines | |||||