Skip to content

Commit

Permalink
v0.6.1
Browse files Browse the repository at this point in the history
Renamed to __init__.py
Fixed curves selections
  • Loading branch information
Jandals committed Oct 13, 2019
1 parent ae9bd4c commit 5a876cb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/HairNet.py → src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def totalNumberSubdivisions(points, cuts):
return points + (points - 1)*cuts

class HAIRNET_OT_operator (bpy.types.Operator):
bl_idname = "particle.hairnet"
bl_idname = "hairnet.operator"
bl_label = "HairNet"
bl_options = {'REGISTER', 'UNDO'}
bl_description = "Makes hair guides from mesh edges."
Expand Down Expand Up @@ -892,7 +892,7 @@ def subdivideGuideHairs(self, guides, hairObj):
return guides

class HAIRNET_PT_panel(bpy.types.Panel):
bl_idname = "PARTICLE_PT_HairNet"
bl_idname = "HAIRNET_PT_HairNet"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "particle"
Expand Down Expand Up @@ -951,7 +951,7 @@ def draw(self, context):
row.prop(self.headObj, 'hnSproutHairs', text = "Subdivide U")

class HAIRNET_PT_view_panel(bpy.types.Panel):
bl_idname = "PARTICLE_PT_HairNet_view_panel"
bl_idname = "HAIRNET_PT_view_panel"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_label = "HairNet"
Expand All @@ -966,11 +966,15 @@ def drawButtons(self, layout):
row = col.row(align = True)
row.label(text="Make Hair")
row = col.row()
row.operator("particle.hairnet", text="Add Hair From Sheets").meshKind="SHEET"
row.label(text ="Start")
row = col.row()
row.operator("particle.hairnet", text="Add Hair From Fibers").meshKind="FIBER"
row.operator("hairnet.operator", text="Add Hair From Sheets").meshKind="SHEET"
row = col.row()
row.operator("particle.hairnet", text="Add Hair From Curves").meshKind="CURVE"
row.operator("hairnet.operator", text="Add Hair From Fibers").meshKind="FIBER"
row = col.row()
row.operator("hairnet.operator", text="Add Hair From Curves").meshKind="CURVE"
row = col.row()
row.label(text ="Done")

def drawDetails(self, layout, context):
self.headObj = context.object
Expand Down Expand Up @@ -1024,7 +1028,7 @@ def drawDetails(self, layout, context):



classes = (HAIRNET_OT_operator, HAIRNET_PT_panel, HAIRNET_PT_view_panel)
classes = (HAIRNET_OT_operator, HAIRNET_PT_panel, HAIRNET_PT_view_panel,)
register, unregister = bpy.utils.register_classes_factory(classes)


Expand Down

0 comments on commit 5a876cb

Please sign in to comment.