[Bf-extensions-cvs] [c8da867] master: FBX Export: minor tweaks.

Bastien Montagne noreply at git.blender.org
Thu Oct 9 14:26:20 CEST 2014


Commit: c8da8674d0a0a636caaff5fc426906da7b6e8c36
Author: Bastien Montagne
Date:   Thu Oct 9 14:13:29 2014 +0200
Branches: master
https://developer.blender.org/rBAc8da8674d0a0a636caaff5fc426906da7b6e8c36

FBX Export: minor tweaks.

* Only export global animation if neither NLAStrips nor AllActions options are set.
* Do not prepend '_' to groups' filenames in case of batchexport with no prefix given.

Requested by Mango Jambo through mail.

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

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 3cb7a14..853a313 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -2025,8 +2025,8 @@ def fbx_animations(scene_data):
 
             bpy.data.objects.remove(ob_copy)
 
-    # Global (containing everything) animstack.
-    if not scene_data.settings.bake_anim_use_nla_strips or not animations:
+    # Global (containing everything) animstack, only if not exporting NLA strips and/or all actions.
+    if not scene_data.settings.bake_anim_use_nla_strips and not scene_data.settings.bake_anim_use_all_actions:
         add_anim(animations, fbx_animations_do(scene_data, None, scene.frame_start, scene.frame_end, False))
 
     # Be sure to update all matrices back to org state!
@@ -2908,7 +2908,7 @@ def save(operator, context,
 
         new_fbxpath = fbxpath  # own dir option modifies, we need to keep an original
         for data in data_seq:  # scene or group
-            newname = "_".join((prefix, bpy.path.clean_name(data.name)))
+            newname = "_".join((prefix, bpy.path.clean_name(data.name))) if prefix else bpy.path.clean_name(data.name)
 
             if use_batch_own_dir:
                 new_fbxpath = os.path.join(fbxpath, newname)



More information about the Bf-extensions-cvs mailing list