diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-08 16:27:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-08 16:27:52 +0400 |
commit | 35fedac565426a8ada30c620888e5a1739bd9219 (patch) | |
tree | c8230dc578bf6b6f78d8fd21a631b025894c7d29 /release/scripts | |
parent | 21eb8b92a0acaaeebfe54073de1f3fd076174d10 (diff) |
fix [#28821] Whole Character keying set ignores non animatable propertyflag
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/keyingsets_builtins.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/startup/keyingsets_builtins.py b/release/scripts/startup/keyingsets_builtins.py index 6b12c95e072..e99966ce58f 100644 --- a/release/scripts/startup/keyingsets_builtins.py +++ b/release/scripts/startup/keyingsets_builtins.py @@ -360,7 +360,12 @@ class BUILTIN_KSI_WholeCharacter(KeyingSetInfo): continue # for now, just add all of 'em - ksi.addProp(ks, bone, '["%s"]' % (prop)) + prop_rna = type(bone).bl_rna.properties.get(prop, None) + if prop_rna is None: + ksi.addProp(ks, bone, '["%s"]' % prop) + elif prop_rna.is_animatable: + ksi.addProp(ks, bone, prop) + ############################### |