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 20:23:16 +0300
commita87b9998d8062c2ddb0d90947179470e892d8e83 (patch)
tree08f66e9154744519b6cb53c61e7011b89ed404c5
parentb27d39a2e095550100c6a3608a73fc5392f0d75f (diff)
Fix part of T52649: When using 'selected objects' option, export could fail.
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
-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