Fix to ensure consistent bolt sizes regardless of the user's unit scale preference. #16

Open
Ado wants to merge 5 commits from Ado/add_mesh_BoltFactory:scaling_fix into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit c91e27dca5 - Show all commits

View File

@ -427,7 +427,7 @@ class add_mesh_bolt(Operator, AddObjectHelper):
# regardless of the unit scale setting in the scene. It normalizes the scale to maintain
# consistent dimensions across various unit configurations.
scene = context.scene
adjusted_scale = 1 * (0.001 / scene.unit_settings.scale_length)
adjusted_scale = 0.001 / scene.unit_settings.scale_length
if bpy.context.mode == "OBJECT":
if context.selected_objects != [] and context.active_object and \