Cleanup: move bl_description to doc-strings

This is already done almost everywhere, prefer doc-strings unless
there is a reason for the tool-tip and Python doc-string to differ.
This commit is contained in:
Campbell Barton
2024-01-23 13:50:01 +11:00
parent 9a7b767226
commit 1fa896bb9a
4 changed files with 10 additions and 14 deletions

View File

@@ -50,9 +50,9 @@ import pxr.UsdShade as UsdShade
class USDHookExample(bpy.types.USDHook):
"""Example implementation of USD IO hooks"""
bl_idname = "usd_hook_example"
bl_label = "Example"
bl_description = "Example implementation of USD IO hooks"
@staticmethod
def on_export(export_context):

View File

@@ -525,16 +525,11 @@ class ARMATURE_OT_copy_bone_color_to_selected(Operator):
class ARMATURE_OT_collection_solo_visibility(Operator):
"""Hide all other bone collections and show the active one.
Note that it is necessary to also show the ancestors of the active bone
collection in order to ensure its visibility.
"""
"""Hide all other bone collections and show the active one. """ \
"""Note that it is necessary to also show the ancestors of the active """ \
"""bone collection in order to ensure its visibility"""
bl_idname = "armature.collection_solo_visibility"
bl_label = "Solo Visibility"
bl_description = "Hide all other bone collections and show the active one. " + \
"Note that it is necessary to also show the ancestors of the active " + \
"bone collection in order to ensure its visibility"
bl_options = {'REGISTER', 'UNDO'}
name: StringProperty(name='Bone Collection')
@@ -589,11 +584,11 @@ class ARMATURE_OT_collection_show_all(Operator):
class ARMATURE_OT_collection_remove_unused(Operator):
"""Remove all bone collections that have neither bones nor children."""
"""Remove all bone collections that have neither bones nor children.\n""" \
"""This is done recursively, so bone collections that only have unused children are also removed"""
bl_idname = "armature.collection_remove_unused"
bl_label = "Remove Unused Bone Collections"
bl_description = ("Remove all bone collections that have neither bones nor children.\n"
"This is done recursively, so bone collections that only have unused children are also removed")
bl_options = {'REGISTER', 'UNDO'}
@classmethod

View File

@@ -2655,10 +2655,11 @@ class BatchRenameAction(bpy.types.PropertyGroup):
class WM_OT_batch_rename(Operator):
"""Rename multiple items at once"""
bl_idname = "wm.batch_rename"
bl_label = "Batch Rename"
bl_description = "Rename multiple items at once"
bl_options = {'UNDO'}
data_type: EnumProperty(

View File

@@ -884,9 +884,9 @@ class GreasePencilLayerDisplayPanel:
class GreasePencilFlipTintColors(Operator):
"""Switch tint colors"""
bl_label = "Flip Colors"
bl_idname = "gpencil.tint_flip"
bl_description = "Switch tint colors"
@classmethod
def poll(cls, context):