Skip to content

Commit

Permalink
cleanup: added descriptions to operators
Browse files Browse the repository at this point in the history
  • Loading branch information
varkenvarken committed Nov 7, 2024
1 parent fb08303 commit e492e56
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions facemap_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
bl_info = {
"name": "FacemapSelect",
"author": "Michel Anders (varkenvarken) with contribution from Andrew Leichter (aleichter) and Tyo79",
"version": (0, 0, 20241107135814),
"version": (0, 0, 20241107140453),
"blender": (4, 0, 0),
"location": "Edit mode 3d-view, Select- -> From facemap | Create facemap",
"description": "Select faces based on the active boolean facemap or create a new facemap",
Expand Down Expand Up @@ -109,7 +109,10 @@ def execute(self, context):
class FacemapAssign(bpy.types.Operator):
bl_idname = "mesh.facemap_assign"
bl_label = "FacemapAssign"

bl_description = (
"Assign or remove faces from the active facemap"
)

param: bpy.props.StringProperty()

@classmethod
Expand Down Expand Up @@ -141,7 +144,9 @@ def execute(self, context):
class FacemapSelections(bpy.types.Operator):
bl_idname = "mesh.facemap_selections"
bl_label = "Facemap Selections"

bl_description = (
"Select or deselect faces marked in the active facemap"
)
param: bpy.props.StringProperty()

@classmethod
Expand Down Expand Up @@ -279,7 +284,7 @@ def draw(self, context):
row = layout.row()

sub = row.row(align=True)
sub.operator("mesh.facemap_assign", text="Assign").param = "Assign"
sub.operator("mesh.facemap_assign", text="Assign", ).param = "Assign"
sub.operator("mesh.facemap_assign", text="Remove").param = "Remove"

sub = row.row(align=True)
Expand Down

0 comments on commit e492e56

Please sign in to comment.