Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Keith <aaroninusa@gmail.com>2016-02-20 04:36:59 +0300
committerAaron Keith <aaroninusa@gmail.com>2016-02-20 04:36:59 +0300
commit4e357d0e5105aeaa6b8a414017dafe65d3499af4 (patch)
treef14251a06f4f69e1815caba71bc7f2771cd98dcd /add_mesh_BoltFactory
parent219e882b3168669bb733dafcce10bb79d90e8002 (diff)
Fixed bug in minor diameter and Phillips bit dimensions. They were missing from the presets.
Diffstat (limited to 'add_mesh_BoltFactory')
-rw-r--r--add_mesh_BoltFactory/Boltfactory.py10
-rw-r--r--add_mesh_BoltFactory/__init__.py2
2 files changed, 4 insertions, 8 deletions
diff --git a/add_mesh_BoltFactory/Boltfactory.py b/add_mesh_BoltFactory/Boltfactory.py
index dd215a35..4a5b6b79 100644
--- a/add_mesh_BoltFactory/Boltfactory.py
+++ b/add_mesh_BoltFactory/Boltfactory.py
@@ -103,8 +103,7 @@ class add_mesh_bolt(bpy.types.Operator):
description='Diameter of the shank')
bf_Phillips_Bit_Depth = FloatProperty(attr='bf_Phillips_Bit_Depth',
- name='Bit Depth', default = 0, #set in execute
- options = {'HIDDEN'}, #gets calculated in execute
+ name='Bit Depth', default = 1.1431535482406616,
min = 0, soft_min = 0,max = MAX_INPUT_NUMBER,
description='Depth of the Phillips Bit')
@@ -154,8 +153,7 @@ class add_mesh_bolt(bpy.types.Operator):
description='Diameter of the Pan Head')
bf_Philips_Bit_Dia = FloatProperty(attr='bf_Philips_Bit_Dia',
- name='Bit Dia', default = 0, #set in execute
- options = {'HIDDEN'}, #gets calculated in execute
+ name='Bit Dia', default = 1.8199999332427979,
min = 0, soft_min = 0,max = MAX_INPUT_NUMBER,
description='Diameter of the Philips Bit')
@@ -175,8 +173,7 @@ class add_mesh_bolt(bpy.types.Operator):
description='Pitch if the thread')
bf_Minor_Dia = FloatProperty( attr='bf_Minor_Dia',
- name='Minor Dia', default = 0, #set in execute
- options = {'HIDDEN'}, #gets calculated in execute
+ name='Minor Dia', default = 2.6211137771606445,
min = 0, soft_min = 0, max = MAX_INPUT_NUMBER,
description='Inside diameter of the Thread')
@@ -269,7 +266,6 @@ class add_mesh_bolt(bpy.types.Operator):
def execute(self, context):
#print('EXECUTING...')
- self.bf_Phillips_Bit_Depth = float(Get_Phillips_Bit_Height(self.bf_Philips_Bit_Dia))
Create_New_Mesh(self, context, self.align_matrix)
return {'FINISHED'}
diff --git a/add_mesh_BoltFactory/__init__.py b/add_mesh_BoltFactory/__init__.py
index 6dd32b86..d031f5ec 100644
--- a/add_mesh_BoltFactory/__init__.py
+++ b/add_mesh_BoltFactory/__init__.py
@@ -19,7 +19,7 @@
bl_info = {
"name": "BoltFactory",
"author": "Aaron Keith",
- "version": (3, 9),
+ "version": (3, 10),
"blender": (2, 63, 0),
"location": "View3D > Add > Mesh",
"description": "Add a bolt or nut",