diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-02-06 03:04:20 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-02-07 03:32:12 +0300 |
commit | 4e3d6725c4b1ac0e554aa5ff1cb6e151029b2d40 (patch) | |
tree | 7f33965d9dd941fee75c80fa8ff99165fc9b1f0c /source/blender/editors/object/object_edit.c | |
parent | 9eca281e880a1359a57bc3dece87dd1f2cf81621 (diff) |
Clear motionpaths for all objects and bones instead of only selected ones
With the old behaviour, it was too easy to get old paths hanging around because you
forgot to go through and select a few bones that still had them.
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 67c9f6e98da..9940ad896b1 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1314,11 +1314,11 @@ void OBJECT_OT_paths_update(wmOperatorType *ot) /* --------- */ -/* Clear motion paths for selected objects only */ +/* Clear motion paths for all objects */ void ED_objects_clear_paths(bContext *C) { - /* loop over objects in scene */ - CTX_DATA_BEGIN(C, Object *, ob, selected_editable_objects) + /* loop over all edtiable objects in scene */ + CTX_DATA_BEGIN(C, Object *, ob, editable_objects) { if (ob->mpath) { animviz_free_motionpath(ob->mpath); @@ -1346,7 +1346,7 @@ void OBJECT_OT_paths_clear(wmOperatorType *ot) /* identifiers */ ot->name = "Clear Object Paths"; ot->idname = "OBJECT_OT_paths_clear"; - ot->description = "Clear path caches for selected objects"; + ot->description = "Clear path caches for all objects"; /* api callbacks */ ot->exec = object_clear_paths_exec; |