diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-09-08 19:46:59 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-09-08 19:46:59 +0400 |
commit | f42569036c5745e98e0fad72ee782fb97fe9347e (patch) | |
tree | cd1a89dc7730b18f2bb149863a7eea4712454f48 /io_scene_fbx_experimental | |
parent | 075a6a591630733c5e53c24d8d2c53d6ef0ce493 (diff) |
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.
Diffstat (limited to 'io_scene_fbx_experimental')
-rw-r--r-- | io_scene_fbx_experimental/export_fbx_bin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/io_scene_fbx_experimental/export_fbx_bin.py b/io_scene_fbx_experimental/export_fbx_bin.py index 4920d2b0..8af27b49 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]) |