From 48b1656a6cce6fd7606a671eea9d0d17b67d7445 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 23 Nov 2015 15:44:15 +1100 Subject: Cleanup: shadowing (editors) --- source/blender/editors/space_outliner/outliner_select.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/space_outliner/outliner_select.c') diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index e52c68b57e9..02511917b29 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -555,10 +555,9 @@ static eOLDrawState tree_element_active_bone( if (ob) { if (set != OL_SETSEL_EXTEND) { /* single select forces all other bones to get unselected */ - Bone *bone; - for (bone = arm->bonebase.first; bone != NULL; bone = bone->next) { - bone->flag &= ~(BONE_TIPSEL | BONE_SELECTED | BONE_ROOTSEL); - do_outliner_bone_select_recursive(arm, bone, false); + for (Bone *bone_iter = arm->bonebase.first; bone_iter != NULL; bone_iter = bone_iter->next) { + bone_iter->flag &= ~(BONE_TIPSEL | BONE_SELECTED | BONE_ROOTSEL); + do_outliner_bone_select_recursive(arm, bone_iter, false); } } } -- cgit v1.2.3