From dd0f74e7c00997c70c2a234285027c55b04c75a7 Mon Sep 17 00:00:00 2001 From: Pavel Alexandrov Date: Mon, 9 May 2022 15:32:32 +0300 Subject: [PATCH] Fix Blender fbx model scaling (again) (#1072) --- hxd/fmt/fbx/BaseLibrary.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hxd/fmt/fbx/BaseLibrary.hx b/hxd/fmt/fbx/BaseLibrary.hx index 337935490..3ff69649f 100644 --- a/hxd/fmt/fbx/BaseLibrary.hx +++ b/hxd/fmt/fbx/BaseLibrary.hx @@ -265,8 +265,10 @@ class BaseLibrary { case "LastSaved|ApplicationName": app = p.props[4].toString(); default: } - if( app.indexOf("Blender") >= 0 && unitScale == originScale ) - scaleFactor = unitScale / 100; // Adjust blender output scaling + if( app.indexOf("Blender") >= 0 && unitScale == originScale ) { + if ( unitScale == 0 ) scaleFactor = 1; // 0.9999999776482582 scale turning into 0 + else scaleFactor = unitScale / 100; // Adjust blender output scaling + } if( scaleFactor == 1 && geometryScaleFactor == 1 ) return;