[Bf-blender-cvs] [375f757a60b] blender2.8: Cleanup: Remove old cruft (from 2.4)
Joshua Leung
noreply at git.blender.org
Mon Apr 23 14:51:31 CEST 2018
Commit: 375f757a60bd18e8b12979aa6132a2d4b34d146d
Author: Joshua Leung
Date: Mon Apr 23 14:49:44 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB375f757a60bd18e8b12979aa6132a2d4b34d146d
Cleanup: Remove old cruft (from 2.4)
===================================================================
M source/blender/editors/armature/pose_select.c
M source/blender/editors/armature/pose_transform.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list