Fix #5: Scale factor issue #7

Merged
Nika Kutsniashvili merged 2 commits from linux_dr/add_mesh_BoltFactory:losborn_issue83322_fix into main 2024-07-17 13:24:00 +02:00

2 Commits

Author SHA1 Message Date
fd94ab3159 Fixed scale factor issue
* BoltFactory was written with 1mm Blender Units in mind (Blender
    units are now officially 1m)
* Addon already suppoted `GLOBAL_SCALE` constant, but assumed
    inputs would always be in millimeters.
* Since input fields now show units (that are incorrect here)
    the input field units needed to be converted to Blender units first.
* Then converted back to millimeters when constructing the mesh.
* Then let the addon scale the result as it expected.
2024-07-16 11:16:00 -07:00
7e71c5d48b Apply autopep8 changes from pyproject.toml 2024-07-16 11:03:01 -07:00