From e2e7fac7afabd100a0afbd70e322573859cc228a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 30 Jul 2021 17:37:40 +1000 Subject: Cleanup: quiet warnings for tooltips ending with '.' --- blenderkit/__init__.py | 18 +++++++++--------- blenderkit/autothumb.py | 4 ++-- blenderkit/ui.py | 2 +- blenderkit/upload.py | 2 +- power_sequencer/operators/value_offset.py | 5 ++--- render_povray/__init__.py | 2 +- 6 files changed, 16 insertions(+), 17 deletions(-) diff --git a/blenderkit/__init__.py b/blenderkit/__init__.py index ec2268dc..547060ac 100644 --- a/blenderkit/__init__.py +++ b/blenderkit/__init__.py @@ -382,7 +382,7 @@ class BlenderKitUIProps(PropertyGroup): drag_init: BoolProperty(name="Drag Initialisation", default=False) drag_init_button: BoolProperty(name="Drag Initialisation from button", default=False, - description="Click or drag into scene for download.", + description="Click or drag into scene for download", update = run_drag_drop_update) drag_length: IntProperty(name="Drag length", default=0) draw_drag_image: BoolProperty(name="Draw Drag Image", default=False) @@ -697,9 +697,9 @@ class BlenderKitCommonUploadProps(object): name="Thumbnail Style", items=( ('FULL', 'Full', "Your asset will be only available for subscribers"), - ('FREE', 'Free', "You consent you want to release this asset as free for everyone.") + ('FREE', 'Free', "You consent you want to release this asset as free for everyone") ), - description="Assets can be in Free or in Full plan. Also free assets generate credits.", + description="Assets can be in Free or in Full plan. Also free assets generate credits", default="FULL", ) @@ -871,7 +871,7 @@ class BlenderKitMaterialUploadProps(PropertyGroup, BlenderKitCommonUploadProps): ('FREE', 'Free', "You consent you want to release this asset as free for everyone.") ), description="Assets can be in Free or in Full plan. Also free assets generate credits. \n" - "All BlenderKit materials are free.", + "All BlenderKit materials are free", default="FREE", update=update_free ) @@ -886,7 +886,7 @@ class BlenderKitMaterialUploadProps(PropertyGroup, BlenderKitCommonUploadProps): texture_resolution_max: IntProperty(name="Texture Resolution Max", description="texture resolution maximum", default=0) - texture_size_meters: FloatProperty(name="Texture Size in Meters", description="Size of texture in real world units.", + texture_size_meters: FloatProperty(name="Texture Size in Meters", description="Size of texture in real world units", default=1.0, min=0) thumbnail_scale: FloatProperty(name="Thumbnail Object Size", @@ -932,9 +932,9 @@ class BlenderKitMaterialUploadProps(PropertyGroup, BlenderKitCommonUploadProps): thumbnail: StringProperty( name="Thumbnail", - description="Thumbnail path - 512x512 .jpg image, rendered with cycles. \n" + description="Thumbnail path - 512x512 .jpg image, rendered with cycles.\n" "Only standard BlenderKit previews will be accepted.\n" - "Only exception are special effects like fire or similar.", + "Only exception are special effects like fire or similar", subtype='FILE_PATH', default="", update=autothumb.update_upload_material_preview) @@ -1739,14 +1739,14 @@ class BlenderKitAddonPreferences(AddonPreferences): experimental_features: BoolProperty( name="Enable experimental features", - description="Enable all experimental features of BlenderKit. Use at your own risk.", + description="Enable all experimental features of BlenderKit. Use at your own risk", default=False, update=utils.save_prefs ) categories_fix: BoolProperty( name="Enable category fixing mode", - description="Enable category fixing mode.", + description="Enable category fixing mode", default=False, update=utils.save_prefs ) diff --git a/blenderkit/autothumb.py b/blenderkit/autothumb.py index 8eb891b0..c19e4507 100644 --- a/blenderkit/autothumb.py +++ b/blenderkit/autothumb.py @@ -330,7 +330,7 @@ class GenerateThumbnailOperator(bpy.types.Operator): class ReGenerateThumbnailOperator(bpy.types.Operator): """ Generate default thumbnail with Cycles renderer and upload it. - Works also for assets from search results, without being downloaded before. + Works also for assets from search results, without being downloaded before """ bl_idname = "object.blenderkit_regenerate_thumbnail" bl_label = "BlenderKit Thumbnail Re-generate" @@ -440,7 +440,7 @@ class ReGenerateThumbnailOperator(bpy.types.Operator): class GenerateMaterialThumbnailOperator(bpy.types.Operator): - """Generate default thumbnail with Cycles renderer.""" + """Generate default thumbnail with Cycles renderer""" bl_idname = "object.blenderkit_generate_material_thumbnail" bl_label = "BlenderKit Material Thumbnail Generator" bl_options = {'REGISTER', 'INTERNAL'} diff --git a/blenderkit/ui.py b/blenderkit/ui.py index bf6ea546..2a9c782c 100644 --- a/blenderkit/ui.py +++ b/blenderkit/ui.py @@ -1622,7 +1622,7 @@ def find_and_activate_instancers(object): class AssetDragOperator(bpy.types.Operator): - """Drag & drop assets into scene.""" + """Drag & drop assets into scene""" bl_idname = "view3d.asset_drag_drop" bl_label = "BlenderKit asset drag drop" diff --git a/blenderkit/upload.py b/blenderkit/upload.py index 887ffe57..c8974b82 100644 --- a/blenderkit/upload.py +++ b/blenderkit/upload.py @@ -645,7 +645,7 @@ class FastMetadata(bpy.types.Operator): ('PUBLIC', 'Public', '"Your asset will go into the validation process automatically') ), description="If not marked private, your asset will go into the validation process automatically\n" - "Private assets are limited by quota.", + "Private assets are limited by quota", default="PUBLIC", ) diff --git a/power_sequencer/operators/value_offset.py b/power_sequencer/operators/value_offset.py index debd2ef6..e876a1bd 100644 --- a/power_sequencer/operators/value_offset.py +++ b/power_sequencer/operators/value_offset.py @@ -21,9 +21,8 @@ from .utils.functions import convert_duration_to_frames class POWER_SEQUENCER_OT_value_offset(bpy.types.Operator): - """Instantly offset selected strips, either using frames or seconds. Allows to - nudge the selection quickly, using keyboard shortcuts. - """ + """Instantly offset selected strips, either using frames or seconds. """ \ + """Allows to nudge the selection quickly, using keyboard shortcuts""" doc = { "name": doc_name(__qualname__), diff --git a/render_povray/__init__.py b/render_povray/__init__.py index 2bc4f420..fe0de21f 100755 --- a/render_povray/__init__.py +++ b/render_povray/__init__.py @@ -222,7 +222,7 @@ else: class POV_OT_update_addon(bpy.types.Operator): - """Update this addon to the latest version.""" + """Update this add-on to the latest version""" bl_idname = "pov.update_addon" bl_label = "Update POV addon" -- cgit v1.2.3