WIP: white space changes to BoltFactory to fix flake8 #105083
@ -26,7 +26,6 @@ class add_mesh_bolt(Operator, AddObjectHelper):
|
||||
bl_options = {'REGISTER', 'UNDO', 'PRESET'}
|
||||
bl_description = "Construct many types of Bolts"
|
||||
|
||||
|
||||
MAX_INPUT_NUMBER = 50
|
||||
|
||||
Bolt: BoolProperty(name="Bolt",
|
||||
@ -327,6 +326,7 @@ class add_mesh_bolt(Operator, AddObjectHelper):
|
||||
description='Flange diameter of the 12 point Nut',
|
||||
unit='LENGTH',
|
||||
)
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
col = layout.column()
|
||||
@ -387,8 +387,6 @@ class add_mesh_bolt(Operator, AddObjectHelper):
|
||||
col.prop(self, 'bf_Hex_Nut_Height')
|
||||
col.prop(self, 'bf_Hex_Nut_Flat_Distance')
|
||||
|
||||
|
||||
|
||||
# Thread
|
||||
col.label(text='Thread')
|
||||
if self.bf_Model_Type == 'bf_Model_Bolt':
|
||||
@ -467,6 +465,7 @@ class add_mesh_bolt(Operator, AddObjectHelper):
|
||||
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
# Register:
|
||||
def Bolt_contex_menu(self, context):
|
||||
bl_label = 'Change'
|
||||
@ -481,18 +480,19 @@ def Bolt_contex_menu(self, context):
|
||||
setattr(props, prm, obj.data[prm])
|
||||
layout.separator()
|
||||
|
||||
|
||||
def menu_func_bolt(self, context):
|
||||
layout = self.layout
|
||||
layout.separator()
|
||||
oper = self.layout.operator(add_mesh_bolt.bl_idname, text="Bolt", icon="MOD_SCREW")
|
||||
oper.change = False
|
||||
|
||||
|
||||
classes = (
|
||||
add_mesh_bolt,
|
||||
)
|
||||
|
||||
|
||||
|
||||
def register():
|
||||
for cls in classes:
|
||||
bpy.utils.register_class(cls)
|
||||
@ -506,6 +506,7 @@ def unregister():
|
||||
for cls in reversed(classes):
|
||||
bpy.utils.unregister_class(cls)
|
||||
|
||||
|
||||
def BoltParameters():
|
||||
BoltParameters = [
|
||||
"bf_Model_Type",
|
||||
|
Loading…
Reference in New Issue
Block a user