Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2017-09-04 20:23:16 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-09-04 22:01:21 +0300
commitf1c6cfa21594e7c8b7a43cd1e0653d8a812929c6 (patch)
tree36de666b9aa6298774d288044ed2271a30cb6208 /io_scene_fbx/export_fbx_bin.py
parent7525d1c859996aeeb1555187a7310744662e10cf (diff)
Fix part of T52649: When using 'selected objects' option, export could fail.v2.79blender-v2.79-release
Broken logic in selecting 'best' scene to take settings from while generating temp new scene used to export selected objects only. Safe enough to be backported to 2.79
Diffstat (limited to 'io_scene_fbx/export_fbx_bin.py')
-rw-r--r--io_scene_fbx/export_fbx_bin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 880cd448..e9e1248e 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -3129,7 +3129,7 @@ def save(operator, context,
# Find the 'most used' source scene, and use its unit settings. This is somewhat weak, but should work
# fine in most cases, and avoids stupid issues like T41931.
best_src_scene = None
- best_src_scene_users = 0
+ best_src_scene_users = -1
for sce, nbr_users in src_scenes.items():
if (nbr_users) > best_src_scene_users:
best_src_scene_users = nbr_users