[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1436] trunk/py/scripts/addons: update for changes in blender api.

Campbell Barton ideasman42 at gmail.com
Tue Jan 18 22:50:52 CET 2011


Revision: 1436
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1436
Author:   campbellbarton
Date:     2011-01-18 21:50:52 +0000 (Tue, 18 Jan 2011)
Log Message:
-----------
update for changes in blender api.

Modified Paths:
--------------
    trunk/py/scripts/addons/curve_simplify.py
    trunk/py/scripts/addons/io_import_scene_mhx.py

Modified: trunk/py/scripts/addons/curve_simplify.py
===================================================================
--- trunk/py/scripts/addons/curve_simplify.py	2011-01-18 21:33:02 UTC (rev 1435)
+++ trunk/py/scripts/addons/curve_simplify.py	2011-01-18 21:50:52 UTC (rev 1436)
@@ -351,7 +351,7 @@
                 fcurve_sel[fcurve_i].keyframe_points.remove(fcurve_sel[fcurve_i].keyframe_points[i])
             # put newPoints into fcurve
             for v in newPoints:
-                fcurve_sel[fcurve_i].keyframe_points.add(frame=v[0],value=v[1])
+                fcurve_sel[fcurve_i].keyframe_points.insert(frame=v[0],value=v[1])
             #fcurve.points.foreach_set('co', newPoints)
     return
 

Modified: trunk/py/scripts/addons/io_import_scene_mhx.py
===================================================================
--- trunk/py/scripts/addons/io_import_scene_mhx.py	2011-01-18 21:33:02 UTC (rev 1435)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py	2011-01-18 21:50:52 UTC (rev 1436)
@@ -693,7 +693,7 @@
         elif key == 'FModifier':
             parseFModifier(fcu, val, sub)
         elif key == 'kp':
-            pt = fcu.keyframe_points.add(n, 0)
+            pt = fcu.keyframe_points.insert(n, 0)
             pt.interpolation = 'LINEAR'
             pt = parseKeyFramePoint(pt, val, sub)
             n += 1



More information about the Bf-extensions-cvs mailing list