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>2011-01-29 12:47:48 +0300
committerJoshua Leung <aligorith@gmail.com>2011-01-29 12:47:48 +0300
commite7e5fa06301430d8c37b302ca70c45a216bc16cf (patch)
tree74871bc59ce19c0bb2ade15b07227eff9b54209c /release
parent1439ebb6b1091c0bc976480ec1751966395b2755 (diff)
"Whole Character" KeyingSet Bugfix: RNA paths for custom properties
were getting formed wrongly Although the RNA paths for the custom properties could get evaluated correctly, keyframe status highlights in buttons didn't always work correctly, and would lead to a duplicate F-Curve for the same setting getting created.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/keyingsets/keyingsets_builtins.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/release/scripts/keyingsets/keyingsets_builtins.py b/release/scripts/keyingsets/keyingsets_builtins.py
index 7f3fe6e1f14..8a10342d6a5 100644
--- a/release/scripts/keyingsets/keyingsets_builtins.py
+++ b/release/scripts/keyingsets/keyingsets_builtins.py
@@ -236,11 +236,17 @@ class BUILTIN_KSI_WholeCharacter(bpy.types.KeyingSetInfo):
# helper to add some bone's property to the Keying Set
def addProp(ksi, ks, bone, prop, index=-1, use_groups=True):
# add the property name to the base path
- path = path_add_property(bone.path_from_id(), prop)
-
- # add Keying Set entry for this...
+ id_path = bone.path_from_id()
id_block = bone.id_data
+
+ if prop.startswith('['):
+ # custom properties
+ path = id_path + prop
+ else:
+ # standard transforms/properties
+ path = path_add_property(id_path, prop)
+ # add Keying Set entry for this...
if use_groups:
ks.paths.add(id_block, path, index, group_method='NAMED', group_name=bone.name)
else: