Fix to ensure consistent bolt sizes regardless of the user's unit scale preference. #16
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user