diff options
author | Hans Goudey <h.goudey@me.com> | 2020-07-21 16:51:27 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-07-21 16:51:27 +0300 |
commit | d42530824e434fcc4c8d5394dd65f44cf3e8c16f (patch) | |
tree | 434907905bd9335ff9af86cab65149714c8fcc40 /source/blender/blenkernel/intern/armature.c | |
parent | 6b6e2e742ff4393a73e982e0a3d6dae934ad20f2 (diff) |
Fix T78994: Clear selected pose doesn't work without animation
It looks like the code left this as a todo, but the basic solution is to
add an extra parameter to BKE_bose_rest to check whether bones
are selected before reseting them.
I also corrected the operator description which said it acted on only
selected bones even when there is an option to turn that off. The
"act on selected" is generally implied for Blender's operators anyway.
Differential Revision: https://developer.blender.org/D8319
Diffstat (limited to 'source/blender/blenkernel/intern/armature.c')
-rw-r--r-- | source/blender/blenkernel/intern/armature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index e799fb16929..bf04603aa46 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -2164,7 +2164,7 @@ static void pose_proxy_sync(Object *ob, Object *from, int layer_protected) } /* clear all transformation values from library */ - BKE_pose_rest(frompose); + BKE_pose_rest(frompose, false); /* copy over all of the proxy's bone groups */ /* TODO for later |