[Bf-extensions-cvs] [b85e55f] dxf_import: 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
Fri Aug 15 12:38:31 CEST 2014


Commit: b85e55f52544309fd42e8d4588584016997fae7f
Author: Bastien Montagne
Date:   Thu Aug 14 17:28:23 2014 +0200
Branches: dxf_import
https://developer.blender.org/rBAb85e55f52544309fd42e8d4588584016997fae7f

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