diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-10-09 16:13:29 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-10-09 16:25:46 +0400 |
commit | c8da8674d0a0a636caaff5fc426906da7b6e8c36 (patch) | |
tree | ec82ae08d0ca9eed46d0d72ab12397ee47150337 | |
parent | 00d84a2cb55a3244027fd6609ff7f1e4bf3eec3d (diff) |
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.
-rw-r--r-- | io_scene_fbx/export_fbx_bin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index 3cb7a143..853a313d 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) |