Skip to content

Commit

Permalink
Fix Blender fbx model scaling (again) (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanrishatum authored May 9, 2022
1 parent d1d0008 commit dd0f74e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hxd/fmt/fbx/BaseLibrary.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dd0f74e

Please sign in to comment.