From f1c6cfa21594e7c8b7a43cd1e0653d8a812929c6 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 4 Sep 2017 19:23:16 +0200 Subject: 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 --- io_scene_fbx/export_fbx_bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3