diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 1bdf3efd6f3bbdc10591c80141151f0d1ea9df03..1d7ba1c5ef7c7fb2aaeba25ef7f22dec45f152b6 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -157,8 +157,8 @@ class ExportFBX(bpy.types.Operator, ExportHelper): name="Scale", description=("Scale all data " "(Some importers do not support scaled armatures!)"), - min=0.01, max=1000.0, - soft_min=0.001, soft_max=1000.0, + min=0.001, max=1000.0, + soft_min=0.01, soft_max=1000.0, default=1.0, ) axis_forward = EnumProperty( @@ -246,9 +246,9 @@ class ExportFBX(bpy.types.Operator, ExportHelper): name="Precision", description=("Tolerance for comparing double keyframes " "(higher for greater accuracy)"), - min=1, max=16, - soft_min=1, soft_max=16, - default=6.0, + min=0.0, max=20.0, # from 10^2 to 10^-18 frames precision. + soft_min=1.0, soft_max=16.0, + default=6.0, # default: 10^-4 frames. ) path_mode = path_reference_mode batch_mode = EnumProperty( diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py index 9513801b33ce3bc68d56c39077da6e77283edd48..94b40eea18c6c8d0514f5ec229a24d1c9a840ffc 100644 --- a/io_scene_fbx/export_fbx.py +++ b/io_scene_fbx/export_fbx.py @@ -1385,7 +1385,6 @@ def save_single(operator, scene, filepath="", # Write the Real Mesh data here fw('\n\t\tVertices: ') i = -1 - for v in me_vertices: if i == -1: fw('%.6f,%.6f,%.6f' % v.co[:]) @@ -2601,7 +2600,8 @@ Connections: {''') frame_orig = scene.frame_current if use_anim_optimize: - ANIM_OPTIMIZE_PRECISSION_FLOAT = 0.1 ** anim_optimize_precision + # Do we really want to keep such behavior? User could enter real value directly... + ANIM_OPTIMIZE_PRECISSION_FLOAT = 10 ** (-anim_optimize_precision + 2) # default action, when no actions are avaioable tmp_actions = []