From e492e56273dd80e074fcdf3a56c318d1e8135957 Mon Sep 17 00:00:00 2001 From: varkenvarken Date: Thu, 7 Nov 2024 14:06:03 +0100 Subject: [PATCH] cleanup: added descriptions to operators --- facemap_select.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/facemap_select.py b/facemap_select.py index 17e7b28..91b346a 100644 --- a/facemap_select.py +++ b/facemap_select.py @@ -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", @@ -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 @@ -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 @@ -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)