[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11887] branches/2-44-stable/blender/ release/scripts/export_fbx.py: FBX animations didnt export if there were no bones in the scene
Campbell Barton
cbarton at metavr.com
Wed Aug 29 21:47:28 CEST 2007
Revision: 11887
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11887
Author: campbellbarton
Date: 2007-08-29 21:47:28 +0200 (Wed, 29 Aug 2007)
Log Message:
-----------
FBX animations didnt export if there were no bones in the scene
Modified Paths:
--------------
branches/2-44-stable/blender/release/scripts/export_fbx.py
Modified: branches/2-44-stable/blender/release/scripts/export_fbx.py
===================================================================
--- branches/2-44-stable/blender/release/scripts/export_fbx.py 2007-08-29 18:47:10 UTC (rev 11886)
+++ branches/2-44-stable/blender/release/scripts/export_fbx.py 2007-08-29 19:47:28 UTC (rev 11887)
@@ -1865,7 +1865,7 @@
if armob and armob not in ob_arms:
ob_arms.append(armob)
-
+
else:
blenParentBoneName = armob = None
@@ -2319,7 +2319,10 @@
end = render.eFrame
if end < start: start, end = end, start
- if ANIM_ENABLE and ob_bones: # at the moment can only export bone anim
+ # animations for these object types
+ ob_anim_lists = ob_bones, ob_meshes, ob_null, ob_cameras, ob_lights
+
+ if ANIM_ENABLE and [tmp for tmp in ob_anim_lists if tmp]:
frame_orig = Blender.Get('curframe')
@@ -2435,7 +2438,7 @@
i = act_start
while i <= act_end:
Blender.Set('curframe', i)
- for ob_generic in (ob_bones, ob_meshes, ob_null, ob_cameras, ob_lights):
+ for ob_generic in ob_anim_lists:
for my_ob in ob_generic:
#Blender.Window.RedrawAll()
if ob_generic == ob_meshes and my_ob.fbxArm:
More information about the Bf-blender-cvs
mailing list