Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2018-04-23 15:49:44 +0300
committerJoshua Leung <aligorith@gmail.com>2018-04-23 15:51:24 +0300
commit375f757a60bd18e8b12979aa6132a2d4b34d146d (patch)
tree14d1e2709556cc03548daae52ccd272d739afd80 /source/blender/editors/armature
parent6c46174662c8db540a412e72656f146eb52afaf4 (diff)
Cleanup: Remove old cruft (from 2.4)
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/pose_select.c5
-rw-r--r--source/blender/editors/armature/pose_transform.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/editors/armature/pose_select.c b/source/blender/editors/armature/pose_select.c
index 39dba82aaf1..67e1572abfa 100644
--- a/source/blender/editors/armature/pose_select.c
+++ b/source/blender/editors/armature/pose_select.c
@@ -307,9 +307,6 @@ static void selectconnected_posebonechildren(Object *ob, Bone *bone, int extend)
if (!(bone->flag & BONE_CONNECTED) || (bone->flag & BONE_UNSELECTABLE))
return;
- /* XXX old cruft! use notifiers instead */
- //select_actionchannel_by_name (ob->action, bone->name, !(shift));
-
if (extend)
bone->flag &= ~BONE_SELECTED;
else
@@ -381,7 +378,7 @@ void POSE_OT_select_linked(wmOperatorType *ot)
ot->idname = "POSE_OT_select_linked";
ot->description = "Select bones related to selected ones by parent/child relationships";
- /* api callbacks */
+ /* callbacks */
/* leave 'exec' unset */
ot->invoke = pose_select_connected_invoke;
ot->poll = pose_select_linked_poll;
diff --git a/source/blender/editors/armature/pose_transform.c b/source/blender/editors/armature/pose_transform.c
index 3b8eda1676d..1da09b4b1a6 100644
--- a/source/blender/editors/armature/pose_transform.c
+++ b/source/blender/editors/armature/pose_transform.c
@@ -795,7 +795,8 @@ static int pose_clear_transform_generic_exec(bContext *C, wmOperator *op,
pchan->bone->flag |= BONE_UNKEYED;
}
}
- } FOREACH_PCHAN_SELECTED_IN_OBJECT_END;
+ }
+ FOREACH_PCHAN_SELECTED_IN_OBJECT_END;
if (changed) {
changed_multi = true;
@@ -821,7 +822,8 @@ static int pose_clear_transform_generic_exec(bContext *C, wmOperator *op,
/* note, notifier might evolve */
WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, ob_iter);
}
- } FOREACH_OBJECT_IN_MODE_END;
+ }
+ FOREACH_OBJECT_IN_MODE_END;
return changed_multi ? OPERATOR_FINISHED : OPERATOR_CANCELLED;
}