[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27995] trunk/blender/release/scripts: Animation fixup squad to the rescue!
Joshua Leung
aligorith at gmail.com
Mon Apr 5 00:13:58 CEST 2010
Revision: 27995
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27995
Author: aligorith
Date: 2010-04-05 00:13:57 +0200 (Mon, 05 Apr 2010)
Log Message:
-----------
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).
Modified Paths:
--------------
trunk/blender/release/scripts/keyingsets/keyingsets_utils.py
trunk/blender/release/scripts/ui/properties_scene.py
Modified: trunk/blender/release/scripts/keyingsets/keyingsets_utils.py
===================================================================
--- trunk/blender/release/scripts/keyingsets/keyingsets_utils.py 2010-04-04 21:57:51 UTC (rev 27994)
+++ trunk/blender/release/scripts/keyingsets/keyingsets_utils.py 2010-04-04 22:13:57 UTC (rev 27995)
@@ -66,7 +66,7 @@
# 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 @@
# 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 @@
# 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 @@
# 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...
Modified: trunk/blender/release/scripts/ui/properties_scene.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_scene.py 2010-04-04 21:57:51 UTC (rev 27994)
+++ trunk/blender/release/scripts/ui/properties_scene.py 2010-04-04 22:13:57 UTC (rev 27995)
@@ -300,7 +300,7 @@
# 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:
More information about the Bf-blender-cvs
mailing list