From df876a0e69f7f812eb3818aec3050f7ec1815986 Mon Sep 17 00:00:00 2001
From: Aaron Keith <aaroninusa@gmail.com>
Date: Mon, 13 Apr 2020 16:00:58 +1200
Subject: [PATCH] Fixed bug with inverted normals for Pan head and Allen Bits

---
 add_mesh_BoltFactory/createMesh.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/add_mesh_BoltFactory/createMesh.py b/add_mesh_BoltFactory/createMesh.py
index a0fdeee3b..ccdd4372f 100644
--- a/add_mesh_BoltFactory/createMesh.py
+++ b/add_mesh_BoltFactory/createMesh.py
@@ -1881,7 +1881,8 @@ def Bolt_Mesh(props, context):
         if Allen_Bit_Dia(props.bf_Allen_Bit_Flat_Distance) > Max_Pan_Bit_Dia(props.bf_Pan_Head_Dia):
             ReSized_Allen_Bit_Flat_Distance = Allen_Bit_Dia_To_Flat(
                                                 Max_Pan_Bit_Dia(props.bf_Pan_Head_Dia)
-                                                ) * 1.05
+                                                )
+            ReSized_Allen_Bit_Flat_Distance -= ReSized_Allen_Bit_Flat_Distance * 0.05   # It looks better if it is just a bit smaller
             # print ("Resized Allen Bit Flat Distance to ",ReSized_Allen_Bit_Flat_Distance)
 
     # Bit Mesh
-- 
GitLab