Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_orientations.c
| Show First 20 Lines • Show All 407 Lines • ▼ Show 20 Lines | |||||
| static int count_bone_select(bArmature *arm, ListBase *lb, const bool do_it) | static int count_bone_select(bArmature *arm, ListBase *lb, const bool do_it) | ||||
| { | { | ||||
| Bone *bone; | Bone *bone; | ||||
| bool do_next; | bool do_next; | ||||
| int total = 0; | int total = 0; | ||||
| for (bone = lb->first; bone; bone = bone->next) { | for (bone = lb->first; bone; bone = bone->next) { | ||||
| bone->flag &= ~BONE_TRANSFORM; | bone->flag &= ~(BONE_TRANSFORM | BONE_TRANSFORM_MIRROR); | ||||
| do_next = do_it; | do_next = do_it; | ||||
| if (do_it) { | if (do_it) { | ||||
| if (bone->layer & arm->layer) { | if (bone->layer & arm->layer) { | ||||
| if (bone->flag & BONE_SELECTED) { | if (bone->flag & BONE_SELECTED) { | ||||
| bone->flag |= BONE_TRANSFORM; | bone->flag |= BONE_TRANSFORM; | ||||
| total++; | total++; | ||||
| /* no transform on children if one parent bone is selected */ | /* no transform on children if one parent bone is selected */ | ||||
| ▲ Show 20 Lines • Show All 762 Lines • Show Last 20 Lines | |||||