Skip to content

Commit

Permalink
rename 'Make Unfoldable' -> 'Unfold' everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
addam committed Feb 1, 2014
1 parent e0d17b3 commit d24a1ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions io_export_paper_model.py
Expand Up @@ -310,7 +310,7 @@ def __init__(self, mesh, matrix):
edge.calculate_angle()

def generate_cuts(self, page_size, priority_effect):
"""Cut the mesh so that it will be unfoldable."""
"""Cut the mesh so that it can be unfolded to a flat net."""

twisted_faces = [face for face in self.faces.values() if face.is_twisted()]
if twisted_faces:
Expand Down Expand Up @@ -1404,10 +1404,10 @@ def write(self, mesh, filename):
f.write("</g>")
f.write("</svg>")

class MakeUnfoldable(bpy.types.Operator):
class Unfold(bpy.types.Operator):
"""Blender Operator: unfold the selected object."""
bl_idname = "mesh.make_unfoldable"
bl_label = "Make Unfoldable"
bl_idname = "mesh.unfold"
bl_label = "Unfold"
bl_description = "Mark seams so that the mesh can be exported as a paper model"
bl_options = {'REGISTER', 'UNDO'}
edit = bpy.props.BoolProperty(name="", description="", default=False, options={'HIDDEN'})
Expand Down Expand Up @@ -1687,7 +1687,7 @@ def draw(self, context):

col = layout.column(align=True)
col.label("Customization:")
col.operator("mesh.make_unfoldable")
col.operator("mesh.unfold")

row = layout.row(align=True)
row.operator("mesh.mark_seam", text="Mark Seam").clear = False
Expand Down Expand Up @@ -1738,7 +1738,7 @@ def draw(self, context):
#layout.prop(sce.paper_model, "display_labels", icon='RESTRICT_VIEW_OFF')
else:
layout.label(text="Not unfolded")
layout.box().label("Use the 'Make Unfoldable' tool")
layout.box().label("Use the 'Unfold' tool")
sub = layout.column(align=True)
sub.active = bool(mesh and mesh.paper_island_list)
sub.prop(sce.paper_model, "display_islands", icon='RESTRICT_VIEW_OFF')
Expand Down

0 comments on commit d24a1ae

Please sign in to comment.