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.
This commit is contained in:
Bastien Montagne 2014-09-08 17:46:59 +02:00
parent 075a6a5916
commit f42569036c
1 changed files with 1 additions and 0 deletions

View File

@ -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])