[Bf-extensions-cvs] [3f2a9ff] master: Fix Frame start value

Eugenio Pignataro noreply at git.blender.org
Thu Nov 20 20:00:57 CET 2014


Commit: 3f2a9fff1438a25cda6d233eb7a68b2dcdee85e0
Author: Eugenio Pignataro
Date:   Thu Nov 20 16:00:45 2014 -0300
Branches: master
https://developer.blender.org/rBAC3f2a9fff1438a25cda6d233eb7a68b2dcdee85e0

Fix Frame start value

===================================================================

M	oscurart_tools/oscurart_animation.py

===================================================================

diff --git a/oscurart_tools/oscurart_animation.py b/oscurart_tools/oscurart_animation.py
index ad75361..8509ca0 100644
--- a/oscurart_tools/oscurart_animation.py
+++ b/oscurart_tools/oscurart_animation.py
@@ -12,6 +12,7 @@ def DefQuickParent(inf,out):
         target = [object for object in bpy.context.selected_objects if object != ob][0]
         ob = bpy.context.active_pose_bone if bpy.context.object.type == 'ARMATURE' else bpy.context.object
         target.select = False
+        bpy.context.scene.frame_set(frame=bpy.context.scene.quick_animation_in)
         a = Matrix(target.matrix_world)
         a.invert()
         i = Matrix(ob.matrix)
@@ -24,6 +25,7 @@ def DefQuickParent(inf,out):
         target = [object for object in bpy.context.selected_objects if object != ob][0]
         ob = bpy.context.active_pose_bone if bpy.context.object.type == 'ARMATURE' else bpy.context.object
         target.select = False
+        bpy.context.scene.frame_set(frame=bpy.context.scene.quick_animation_in)
         a = Matrix(target.matrix_world)
         a.invert()
         i = Matrix(ob.matrix_world)



More information about the Bf-extensions-cvs mailing list