[Bf-extensions-cvs] [76b772d] master: FBX export: and yet another fix... :/
Bastien Montagne
noreply at git.blender.org
Thu May 8 09:17:28 CEST 2014
Commit: 76b772db1884ff78d002c249ab45951a1b2af3f7
Author: Bastien Montagne
Date: Thu May 8 09:16:27 2014 +0200
https://developer.blender.org/rBA76b772db1884ff78d002c249ab45951a1b2af3f7
FBX export: and yet another fix... :/
===================================================================
M io_scene_fbx/export_fbx_bin.py
===================================================================
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index cbece8e..8387859 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -2236,6 +2236,10 @@ def fbx_animations_objects_do(scene_data, ref_id, f_start, f_end, start_zero, ob
"""
Generate animation data (a single AnimStack) from objects, for a given frame range.
"""
+ bake_step = scene_data.settings.bake_anim_step
+ scene = scene_data.scene
+ bone_map = scene_data.bones_to_posebones
+
if objects is not None:
# Add bones and duplis!
for obj in tuple(objects):
@@ -2248,9 +2252,6 @@ def fbx_animations_objects_do(scene_data, ref_id, f_start, f_end, start_zero, ob
obj.dupli_list_clear()
else:
objects = scene_data.objects.keys()
- bake_step = scene_data.settings.bake_anim_step
- scene = scene_data.scene
- bone_map = scene_data.bones_to_posebones
# FBX mapping info: Property affected, and name of the "sub" property (to distinguish e.g. vector's channels).
fbx_names = (
More information about the Bf-extensions-cvs
mailing list