[Bf-extensions-cvs] [3691bf0] master: FBX export: Add empties to list of 'bakeable' object types (since in that precise case orientation of empty itself does not really count, as long as children are OK).

Bastien Montagne noreply at git.blender.org
Thu Aug 14 17:56:21 CEST 2014


Commit: 3691bf0026f841bf5d69d463d03d8d332a9f5667
Author: Bastien Montagne
Date:   Thu Aug 14 17:28:23 2014 +0200
Branches: master
https://developer.blender.org/rBA3691bf0026f841bf5d69d463d03d8d332a9f5667

FBX export: Add empties to list of 'bakeable' object types (since in that precise case
orientation of empty itself does not really count, as long as children are OK).

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

M	io_scene_fbx/fbx_utils.py

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

diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index e37c938..d661cea 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -927,7 +927,7 @@ class ObjectWrapper(metaclass=MetaObjectWrapper):
         # NOTE: Only applies to object types supporting this!!! Currently, only meshes and the like...
         # TODO: Check whether this can work for bones too...
         return (scene_data.settings.bake_space_transform and self._tag in {'OB', 'DP'} and
-                self.bdata.type in BLENDER_OBJECT_TYPES_MESHLIKE)
+                self.bdata.type in BLENDER_OBJECT_TYPES_MESHLIKE | {'EMPTY'})
 
     def fbx_object_matrix(self, scene_data, rest=False, local_space=False, global_space=False):
         """



More information about the Bf-extensions-cvs mailing list