diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-16 19:30:50 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-16 19:39:25 +0300 |
commit | 89308ed082f58bb568fbf7a684d063448566b86b (patch) | |
tree | 2fa26037f150686e52a041b67068cec88f583239 /mocap/__init__.py | |
parent | 7a56d60eebbbb18ac8912a9869c342a5cbba7b18 (diff) |
Fix T43259: Mocap Tools - Index out of range in "Samples to Beziers"
Main issue was that the addon did not handled 'sampled_points' at all.
Now it converts such curves back to keyframes ones first.
This might not be optimal, but avoids having too different read logic,
and we cannot do anything to sampled fcurves from python anyway...
Also did some other fixes/enhancements:
* Fixed behavior with groups of fcurves when they did not have same keyframes
(was giving full crappy results with odd offsets).
* In `fitCubic()`, do not call `maxErrorAmount()` twice unless it's really needed.
* Use 'fast' remove/insert of keyframes!
* Use comprehensions to generate the init points data, saves some code lines
and is usually quicker.
Note performance gains (though mesurable) are not so fancy, we could probably
optimize much more by avoiding to use that custom nD vector class and all
(and probably even much much more by using numpy), most of the time being
spent inside complex math helpers, but for now it should work as expected at least.
Diffstat (limited to 'mocap/__init__.py')
-rw-r--r-- | mocap/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mocap/__init__.py b/mocap/__init__.py index fd69f89f..5dca8066 100644 --- a/mocap/__init__.py +++ b/mocap/__init__.py @@ -21,8 +21,8 @@ bl_info = { "name": "Motion Capture Tools", "author": "Benjy Cook", - "blender": (2, 72, 0), - "version": (1, 0, 1), + "blender": (2, 73, 0), + "version": (1, 1, 1), "location": "Object UI > Mocap tools", "description": "Various tools for working with motion capture animation", "warning": "", |