diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-04-05 02:13:57 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-04-05 02:13:57 +0400 |
commit | f90f3d9c29ab2dc7a419d16c556b7bcda16f86ff (patch) | |
tree | 9a6b85565809d7f1c6a8f74ab2dcba005836c441 /release | |
parent | 09489418a3c6c261dcf113c68f0e5699322d009a (diff) |
Animation fixup squad to the rescue!
R 27991 broke all script-based Keying Set support, including all the Built-In Keying Sets. This meant that it nearly impossible to still keyframe anything (there are other less convenient ways, but none work quite as well).
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/keyingsets/keyingsets_utils.py | 14 | ||||
-rw-r--r-- | release/scripts/ui/properties_scene.py | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/keyingsets/keyingsets_utils.py b/release/scripts/keyingsets/keyingsets_utils.py index 2b0793fe36b..4ad6dab798f 100644 --- a/release/scripts/keyingsets/keyingsets_utils.py +++ b/release/scripts/keyingsets/keyingsets_utils.py @@ -66,7 +66,7 @@ def RKS_GEN_available(ksi, context, ks, data): # for each F-Curve, include an path to key it # NOTE: we don't need to set the group settings here for fcu in adt.action.fcurves: - ks.add_path(id_block, fcu.data_path, index=fcu.array_index) + ks.paths.add(id_block, fcu.data_path, index=fcu.array_index) # ------ @@ -103,9 +103,9 @@ def RKS_GEN_location(ksi, context, ks, data): # add Keying Set entry for this... if grouping: - ks.add_path(id_block, path, grouping_method='NAMED', group_name=grouping) + ks.paths.add(id_block, path, grouping_method='NAMED', group_name=grouping) else: - ks.add_path(id_block, path) + ks.paths.add(id_block, path) # Rotation def RKS_GEN_rotation(ksi, context, ks, data): @@ -123,9 +123,9 @@ def RKS_GEN_rotation(ksi, context, ks, data): # add Keying Set entry for this... if grouping: - ks.add_path(id_block, path, grouping_method='NAMED', group_name=grouping) + ks.paths.add(id_block, path, grouping_method='NAMED', group_name=grouping) else: - ks.add_path(id_block, path) + ks.paths.add(id_block, path) # Scaling def RKS_GEN_scaling(ksi, context, ks, data): @@ -137,9 +137,9 @@ def RKS_GEN_scaling(ksi, context, ks, data): # add Keying Set entry for this... if grouping: - ks.add_path(id_block, path, grouping_method='NAMED', group_name=grouping) + ks.paths.add(id_block, path, grouping_method='NAMED', group_name=grouping) else: - ks.add_path(id_block, path) + ks.paths.add(id_block, path) ########################### # Un-needed stuff which is here to just shut up the warnings... diff --git a/release/scripts/ui/properties_scene.py b/release/scripts/ui/properties_scene.py index 4b48ec926a6..119988f8fa3 100644 --- a/release/scripts/ui/properties_scene.py +++ b/release/scripts/ui/properties_scene.py @@ -300,7 +300,7 @@ class ANIM_OT_keying_set_export(bpy.types.Operator): # write paths f.write("# Path Definitions\n") for ksp in ks.paths: - f.write("ksp = ks.add_path(") + f.write("ksp = ks.paths.add(") # id-block + RNA-path if ksp.id: |