[Bf-extensions-cvs] [32040a4] master: Cleanup: quiet warnings registering add-ons

Campbell Barton noreply at git.blender.org
Fri Jul 30 09:39:45 CEST 2021


Commit: 32040a4a0ca1537057612590194b54ed511462c8
Author: Campbell Barton
Date:   Fri Jul 30 17:38:13 2021 +1000
Branches: master
https://developer.blender.org/rBAC32040a4a0ca1537057612590194b54ed511462c8

Cleanup: quiet warnings registering add-ons

- Don't end descriptions with '.'.
- Remove deprecated `GL_LINE_STIPPLE`.

===================================================================

M	animation_motion_trail.py
M	automat/AutoOp.py
M	io_import_sound_to_anim.py
M	object_fracture_crack/__init__.py
M	object_fracture_crack/operator.py
M	render_auto_save.py
M	space_clip_editor_autotracker.py

===================================================================

diff --git a/animation_motion_trail.py b/animation_motion_trail.py
index 52ed950..65be2db 100644
--- a/animation_motion_trail.py
+++ b/animation_motion_trail.py
@@ -1610,6 +1610,7 @@ class MotionTrailOperator(bpy.types.Operator):
 
 
 class MotionTrailPanel(bpy.types.Panel):
+    bl_idname = "VIEW3D_PT_motion_trail"
     bl_category = "Animation"
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
diff --git a/automat/AutoOp.py b/automat/AutoOp.py
index f52ec58..76a9969 100644
--- a/automat/AutoOp.py
+++ b/automat/AutoOp.py
@@ -11,8 +11,7 @@ import os
 import glob
 
 class AutomatOperatorFromTexture(bpy.types.Operator):
-
-    """This operator generates automatic materials from textures in Cycles."""
+    """This operator generates automatic materials from textures in Cycles"""
 
     # Metadata of the operator
 
@@ -26,7 +25,10 @@ class AutomatOperatorFromTexture(bpy.types.Operator):
     filename: bpy.props.StringProperty()
     directory: bpy.props.StringProperty(subtype="FILE_PATH")
 
-    make_seamless: bpy.props.BoolProperty(name="Make Seamless", description="Make tileable (removes visible borders of the image).")
+    make_seamless: bpy.props.BoolProperty(
+        name="Make Seamless",
+        description="Make tileable (removes visible borders of the image)",
+    )
 
     def execute(self, context):
 
diff --git a/io_import_sound_to_anim.py b/io_import_sound_to_anim.py
index eb67c2f..f400483 100644
--- a/io_import_sound_to_anim.py
+++ b/io_import_sound_to_anim.py
@@ -307,7 +307,7 @@ class ImpSoundtoAnim(bpy.types.PropertyGroup):
 
         #iAudioSensib=0    #sensibilidade volume do audio 0 a 5. Quanto maior, mais sensibilidade
         audio_sense: IntProperty(name="Audio Sens",
-            description="Audio Sensibility.",
+            description="Audio Sensibility",
             min=1,
             max=6,
             step=1,
@@ -316,7 +316,7 @@ class ImpSoundtoAnim(bpy.types.PropertyGroup):
         #iFramesPorSeg=15  #Frames por segundo para key frame
         #fps= (bpy.types.Scene) bpy.context.object.render.fps
         frames_per_second: IntProperty(name="#Frames/s",
-            description="Frames you want per second. Better match your set up in Blender scene.",
+            description="Frames you want per second. Better match your set up in Blender scene",
             min=1,
             max=120,
             step=1,
@@ -341,7 +341,7 @@ class ImpSoundtoAnim(bpy.types.PropertyGroup):
 
         #iMaxValue=255
         action_max_value: IntProperty(name="Clip Max",
-            description="Set the max value (clip higher values).",
+            description="Set the max value (clip higher values)",
             min=1,
             max=255,
             step=1,
@@ -357,7 +357,7 @@ class ImpSoundtoAnim(bpy.types.PropertyGroup):
 
         #iStartFrame=0#
         frames_initial: IntProperty(name="Frame Ini",
-            description="Where to start to put the computed values.",
+            description="Where to start to put the computed values",
             min=0,
             max=999999999,
             step=1,
@@ -439,7 +439,7 @@ class ImpSoundtoAnim(bpy.types.PropertyGroup):
 
         #  INVERTIDO!!!  bNaoValorIgual=True    # nao deixa repetir valores     INVERTIDO!!!
         action_valor_igual: BoolProperty(name="Hard Transition",
-            description="Default. Movements like a beat.",
+            description="Default. Movements like a beat",
             default=1)
 
         action_auto_audio_sense: BoolProperty(name="Auto Audio Sensitivity",
@@ -447,35 +447,35 @@ class ImpSoundtoAnim(bpy.types.PropertyGroup):
             default=1)
 
         use_just_beat:BoolProperty(name="Only Use The Beat",
-            description="Try to use only the beat to extract movement.",
+            description="Try to use only the beat to extract movement",
             default=0)
 
         remove_beat:BoolProperty(name="Remove The Beat",
-            description="Try to remove the beat to extract movement.",
+            description="Try to remove the beat to extract movement",
             default=0)
 
         beat_more_sensible:BoolProperty(name="More Sensible",
-            description="Try To be more sensible about the beat.",
+            description="Try To be more sensible about the beat",
             default=0)
 
         beat_less_sensible:BoolProperty(name="Less Sensible",
-            description="Try to be less sensible about the beat.",
+            description="Try to be less sensible about the beat",
             default=0)
 
         check_smartrender_loc_rot_sc:BoolProperty(name="Loc Rot Scale",
-            description="Find changes in Location, Rotation and Scale Frame by Frame.",
+            description="Find changes in Location, Rotation and Scale Frame by Frame",
             default=1)
 
         check_smartrender_material_basic:BoolProperty(name="Basic Material",
-            description="Find changes in basic material settings Frame by Frame.",
+            description="Find changes in basic material settings Frame by Frame",
             default=1)
 
         check_smartrender_material_transparence:BoolProperty(name="Material Transparence",
-            description="Find changes in material transparence settings Frame by Frame.",
+            description="Find changes in material transparence settings Frame by Frame",
             default=0)
 
         check_smartrender_material_mirror:BoolProperty(name="Material Mirror",
-            description="Find changes in material mirror settings Frame by Frame.",
+            description="Find changes in material mirror settings Frame by Frame",
             default=0)
 
         timer_reset_func:BoolProperty(name="Reset Counters",
@@ -488,7 +488,7 @@ class ImpSoundtoAnim(bpy.types.PropertyGroup):
 
         #  Optimization
         optimization_destructive: IntProperty(name="Optimization",
-            description="Hi value = Hi optimization -> Hi loss of information.",
+            description="Hi value = Hi optimization -> Hi loss of information",
             min=0,
             max=254,
             step=10,
@@ -1529,7 +1529,11 @@ def register():
     bpy.types.TOPBAR_MT_file_import.append(WavFileImport)
     #bpy.types.VIEW3D_MT_mesh_add.append(WavFileImport)
     #bpy.types.Object.ant_landscape = PointerProperty(type=AntLandscapePropertiesGroup, name="ANT_Landscape", description="Landscape properties")
-    bpy.types.Object.imp_sound_to_anim = PointerProperty(type=ImpSoundtoAnim, name="imp_sound_to_anim", description="Extract movement from sound file. See the tool shelf.")
+    bpy.types.Object.imp_sound_to_anim = PointerProperty(
+        type=ImpSoundtoAnim,
+        name="imp_sound_to_anim",
+        description="Extract movement from sound file. See the tool shelf",
+    )
 
 
 def unregister():
diff --git a/object_fracture_crack/__init__.py b/object_fracture_crack/__init__.py
index 26ab868..d76f434 100644
--- a/object_fracture_crack/__init__.py
+++ b/object_fracture_crack/__init__.py
@@ -262,29 +262,29 @@ class FractureCellProperties(PropertyGroup):
             )
     collection_name: StringProperty(
             name="Name",
-            description="Collection name.",
+            description="Collection name",
             default="Fracture",
             )
     original_hide: BoolProperty(
             name="Hide Original",
-            description="Hide original object after cell fracture.",
+            description="Hide original object after cell fracture",
             default=True,
             )
     cell_relocate : BoolProperty(
             name="Move Beside Original",
-            description="Move cells beside the original object.",
+            description="Move cells beside the original object",
             default=False,
             )
     # -------------------------------------------------------------------------
     # Custom Property Options
     use_mass: BoolProperty(
         name="Mass",
-        description="Append mass data on custom properties of cell objects.",
+        description="Append mass data on custom properties of cell objects",
         default=False,
         )
     mass_name: StringProperty(
         name="Property Name",
-        description="Name for custome properties.",
+        description="Name for custome properties",
         default="mass",
         )
     mass_mode: EnumProperty(
diff --git a/object_fracture_crack/operator.py b/object_fracture_crack/operator.py
index dff37ed..143d9dc 100644
--- a/object_fracture_crack/operator.py
+++ b/object_fracture_crack/operator.py
@@ -21,7 +21,7 @@ from bpy.types import (
 class FRACTURE_OT_Cell(Operator):
     bl_idname = "object.add_fracture_cell"
     bl_label = "Fracture Cell"
-    bl_description = "Make fractured cells from selected object."
+    bl_description = "Make fractured cells from selected object"
     bl_options = {'REGISTER', 'UNDO'}
 
     @classmethod
diff --git a/render_auto_save.py b/render_auto_save.py
index 2928c0e..8deb8e7 100644
--- a/render_auto_save.py
+++ b/render_auto_save.py
@@ -216,7 +216,7 @@ def register():
         description='Also save .blend (copy) file into: //auto_save/')
     bpy.types.Scene.auto_save_format = EnumProperty(
         name='Auto Save File Format',
-        description='File Format for the auto saves.',
+        description='File Format for the auto saves',
         items=[
             ('SCENE', 'scene format', 'Format set in output panel'),
             ('PNG', 'png', 'Save as png'),
diff --git a/space_clip_editor_autotracker.py b/space_clip_editor_autotracker.py
index 1fe4020..dd29673 100644
--- a/space_clip_editor_autotracker.py
+++ b/space_clip_editor_autotracker.py
@@ -83,7 +83,11 @@ class GlDrawOnScreen():
         bgl.glDisable(bgl.GL_BLEND)
         bgl.glColor4f(0.0, 0.0, 0.0, 1.0)
 
-    def _start_line(self, colour, width=2, style=bgl.GL_LINE_STIPPLE):
+    def _start_line(self, colour, width=2, style=None):
+        if style is None:
+            # NOTE: this is no longer supported in Blender3.0.
+            # style = bgl.GL_LINE_STIPPLE
+            style = bgl.GL_LINE
         bgl.glPushAttrib(bgl.GL_ENABLE_BIT)
         bgl.glLineStipple(1, 0x9999)
         bgl.glEnable(style)



More information about the Bf-extensions-cvs mailing list