[Bf-extensions-cvs] [f425690] master: FBX Export: Atempt to fix scale issues with UE4.

Bastien Montagne noreply at git.blender.org
Mon Sep 8 17:48:21 CEST 2014

Commit: f42569036c5745e98e0fad72ee782fb97fe9347e
Author: Bastien Montagne
Date:   Mon Sep 8 17:46:59 2014 +0200
Branches: master

FBX Export: Atempt to fix scale issues with UE4.

Not sure at all it will work actually, spent another couple of hours trying to make my UE4
work on VBox, with no luck so far. :/

So, blind guess.


M	io_scene_fbx_experimental/export_fbx_bin.py


diff --git a/io_scene_fbx_experimental/export_fbx_bin.py b/io_scene_fbx_experimental/export_fbx_bin.py
index 4920d2b..8af27b4 100644
--- a/io_scene_fbx_experimental/export_fbx_bin.py
+++ b/io_scene_fbx_experimental/export_fbx_bin.py
@@ -2533,6 +2533,7 @@ def fbx_header_elements(root, scene_data, time=None):
     up_axis, front_axis, coord_axis = RIGHT_HAND_AXES[scene_data.settings.to_axes]
     # Currently not sure about that, but looks like default unit of FBX is cm...
     scale_factor = (1.0 if scene.unit_settings.system == 'NONE' else scene.unit_settings.scale_length) * 100
+    scale_factor *= settings.global_scale
     elem_props_set(props, "p_integer", b"UpAxis", up_axis[0])
     elem_props_set(props, "p_integer", b"UpAxisSign", up_axis[1])
     elem_props_set(props, "p_integer", b"FrontAxis", front_axis[0])

More information about the Bf-extensions-cvs mailing list