[Bf-extensions-cvs] [f530171] master: Cleanup: warnings in descriptions (end with '.')

Campbell Barton noreply at git.blender.org
Thu Mar 30 03:28:09 CEST 2017


Commit: f53017167bdd9854a65690c23cbc90cf1f9d37ea
Author: Campbell Barton
Date:   Thu Mar 30 12:27:14 2017 +1100
Branches: master
https://developer.blender.org/rBAf53017167bdd9854a65690c23cbc90cf1f9d37ea

Cleanup: warnings in descriptions (end with '.')

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

M	add_curve_extra_objects/add_surface_plane_cone.py
M	add_mesh_extra_objects/add_mesh_beam_builder.py
M	add_mesh_extra_objects/add_mesh_round_cube.py
M	oscurart_tools/oscurart_animation.py
M	oscurart_tools/oscurart_files.py
M	oscurart_tools/oscurart_meshes.py
M	oscurart_tools/oscurart_objects.py
M	oscurart_tools/oscurart_overrides.py
M	oscurart_tools/oscurart_render.py
M	oscurart_tools/oscurart_shapes.py
M	render_povray/__init__.py
M	render_povray/nodes.py

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

diff --git a/add_curve_extra_objects/add_surface_plane_cone.py b/add_curve_extra_objects/add_surface_plane_cone.py
index 9836904..58ca48f 100644
--- a/add_curve_extra_objects/add_surface_plane_cone.py
+++ b/add_curve_extra_objects/add_surface_plane_cone.py
@@ -42,22 +42,28 @@ class MakeSurfaceWedge(Operator):
     bl_options = {'REGISTER', 'UNDO'}
 # get input for size and resolution
 
-    size = FloatProperty(name="Size",
-                         description="Size of the object.",
-                         default=1.0,
-                         min=0.01,
-                         max=100.0,
-                         unit="LENGTH")
-    res_u = IntProperty(name="Resolution U",
-                        description="Surface resolution in u direction",
-                        default=1,
-                        min=1,
-                        max=500)
-    res_v = IntProperty(name="Resolution V",
-                        description="Surface resolution in v direction",
-                        default=1,
-                        min=1,
-                        max=500)
+    size = FloatProperty(
+        name="Size",
+        description="Size of the object",
+        default=1.0,
+        min=0.01,
+        max=100.0,
+        unit="LENGTH",
+    )
+    res_u = IntProperty(
+        name="Resolution U",
+        description="Surface resolution in u direction",
+        default=1,
+        min=1,
+        max=500,
+    )
+    res_v = IntProperty(
+        name="Resolution V",
+        description="Surface resolution in v direction",
+        default=1,
+        min=1,
+        max=500,
+    )
 
     @classmethod
     def poll(cls, context):
@@ -129,22 +135,28 @@ class MakeSurfaceCone(Operator):
     bl_context = "object"
     bl_options = {'REGISTER', 'UNDO'}
 
-    size = FloatProperty(name="Size",
-                         description="Size of the object.",
-                         default=1.0,
-                         min=0.01,
-                         max=100.0,
-                         unit="LENGTH")
-    res_u = IntProperty(name="Resolution U",
-                        description="Surface resolution in u direction",
-                        default=4,
-                        min=1,
-                        max=500)
-    res_v = IntProperty(name="Resolution V",
-                        description="Surface resolution in v direction",
-                        default=4,
-                        min=1,
-                        max=500)
+    size = FloatProperty(
+        name="Size",
+        description="Size of the object",
+        default=1.0,
+        min=0.01,
+        max=100.0,
+        unit="LENGTH",
+    )
+    res_u = IntProperty(
+        name="Resolution U",
+        description="Surface resolution in u direction",
+        default=4,
+        min=1,
+        max=500,
+    )
+    res_v = IntProperty(
+        name="Resolution V",
+        description="Surface resolution in v direction",
+        default=4,
+        min=1,
+        max=500,
+    )
 
     @classmethod
     def poll(cls, context):
@@ -214,22 +226,28 @@ class MakeSurfaceStar(Operator):
     bl_context = "object"
     bl_options = {'REGISTER', 'UNDO'}
 
-    size = FloatProperty(name="Size",
-                         description="Size of the object.",
-                         default=1.0,
-                         min=0.01,
-                         max=100.0,
-                         unit="LENGTH")
-    res_u = IntProperty(name="Resolution U",
-                        description="Surface resolution in u direction",
-                        default=1,
-                        min=1,
-                        max=500)
-    res_v = IntProperty(name="Resolution V",
-                        description="Surface resolution in v direction",
-                        default=1,
-                        min=1,
-                        max=500)
+    size = FloatProperty(
+        name="Size",
+        description="Size of the object",
+        default=1.0,
+        min=0.01,
+        max=100.0,
+        unit="LENGTH",
+    )
+    res_u = IntProperty(
+        name="Resolution U",
+        description="Surface resolution in u direction",
+        default=1,
+        min=1,
+        max=500,
+    )
+    res_v = IntProperty(
+        name="Resolution V",
+        description="Surface resolution in v direction",
+        default=1,
+        min=1,
+        max=500,
+    )
 
     @classmethod
     def poll(cls, context):
@@ -314,22 +332,28 @@ class MakeSurfacePlane(Operator):
     bl_context = "object"
     bl_options = {'REGISTER', 'UNDO'}
 
-    size = FloatProperty(name="Size",
-                         description="Size of the object.",
-                         default=1.0,
-                         min=0.01,
-                         max=100.0,
-                         unit="LENGTH")
-    res_u = IntProperty(name="Resolution U",
-                        description="Surface resolution in u direction",
-                        default=1,
-                        min=1,
-                        max=500)
-    res_v = IntProperty(name="Resolution V",
-                        description="Surface resolution in v direction",
-                        default=1,
-                        min=1,
-                        max=500)
+    size = FloatProperty(
+        name="Size",
+        description="Size of the object",
+        default=1.0,
+        min=0.01,
+        max=100.0,
+        unit="LENGTH",
+    )
+    res_u = IntProperty(
+        name="Resolution U",
+        description="Surface resolution in u direction",
+        default=1,
+        min=1,
+        max=500,
+    )
+    res_v = IntProperty(
+        name="Resolution V",
+        description="Surface resolution in v direction",
+        default=1,
+        min=1,
+        max=500,
+    )
 
     @classmethod
     def poll(cls, context):
diff --git a/add_mesh_extra_objects/add_mesh_beam_builder.py b/add_mesh_extra_objects/add_mesh_beam_builder.py
index 9bbe1e2..8297f9a 100644
--- a/add_mesh_extra_objects/add_mesh_beam_builder.py
+++ b/add_mesh_extra_objects/add_mesh_beam_builder.py
@@ -683,7 +683,7 @@ class addBeam(bpy.types.Operator):
                 ("4", "I", "T Beam"),
                 ("5", "T", "I Beam")
                 ),
-                description="Beam form."
+                description="Beam form"
                 )
     beamZ = FloatProperty(
                 name="Height",
diff --git a/add_mesh_extra_objects/add_mesh_round_cube.py b/add_mesh_extra_objects/add_mesh_round_cube.py
index d97c6c0..b56ac3d 100644
--- a/add_mesh_extra_objects/add_mesh_round_cube.py
+++ b/add_mesh_extra_objects/add_mesh_round_cube.py
@@ -328,8 +328,10 @@ def round_cube(radius=1.0, arcdiv=4, lindiv=0., size=(0., 0., 0.),
 class AddRoundCube(bpy.types.Operator, object_utils.AddObjectHelper):
     bl_idname = "mesh.primitive_round_cube_add"
     bl_label = "Add Round Cube"
-    bl_description = ("Create mesh primitives: Quadspheres,"
-                     "\nCapsules, Rounded Cuboids, 3D Grids etc.")
+    bl_description = (
+        "Create mesh primitives: Quadspheres, "
+        "Capsules, Rounded Cuboids, 3D Grids etc"
+    )
     bl_options = {"REGISTER", "UNDO", "PRESET"}
 
     sanity_check_verts = 200000
diff --git a/oscurart_tools/oscurart_animation.py b/oscurart_tools/oscurart_animation.py
index 0a771ae..1680669 100644
--- a/oscurart_tools/oscurart_animation.py
+++ b/oscurart_tools/oscurart_animation.py
@@ -25,8 +25,8 @@ from mathutils import Matrix
 
 
 def DefQuickParent(inf, out):
-    if bpy.context.object.type == "ARMATURE":
-        ob = bpy.context.object
+    ob = bpy.context.object
+    if ob.type == "ARMATURE":
         target = [object for object in bpy.context.selected_objects if object != ob][0]
         ob = bpy.context.active_pose_bone if bpy.context.object.type == 'ARMATURE' else bpy.context.object
         target.select = False
@@ -39,7 +39,6 @@ def DefQuickParent(inf, out):
             ob.matrix = target.matrix_world * a * i
             bpy.ops.anim.keyframe_insert(type="LocRotScale")
     else:
-        ob = bpy.context.object
         target = [object for object in bpy.context.selected_objects if object != ob][0]
         ob = bpy.context.active_pose_bone if bpy.context.object.type == 'ARMATURE' else bpy.context.object
         target.select = False
@@ -53,8 +52,8 @@ def DefQuickParent(inf, out):
             bpy.ops.anim.keyframe_insert(type="LocRotScale")
 
 
-class QuickParent (bpy.types.Operator):
-    """Creates a parent from one object to other in a selected frame range."""
+class QuickParent(bpy.types.Operator):
+    """Creates a parent from one object to other in a selected frame range"""
     bl_idname = "anim.quick_parent_osc"
     bl_label = "Quick Parent"
     bl_options = {"REGISTER", "UNDO"}
@@ -62,5 +61,6 @@ class QuickParent (bpy.types.Operator):
     def execute(self, context):
         DefQuickParent(
             bpy.context.scene.quick_animation_in,
-            bpy.context.scene.quick_animation_out)
+            bpy.context.scene.quick_animation_out,
+        )
         return {'FINISHED'}
diff --git a/oscurart_tools/oscurart_files.py b/oscurart_tools/oscurart_files.py
index cb3c71c..9582b8e 100644
--- a/oscurart_tools/oscurart_files.py
+++ b/oscurart_tools/oscurart_files.py
@@ -27,7 +27,7 @@ import os
 
 
 class reloadImages (Operator):
-    """Reloads all bitmaps in the scene."""
+    """Reloads all bitmaps in the scene"""
     bl_idname = "image.reload_images_osc"
     bl_label = "Reload Images"
     bl_options = {"REGISTER", "UNDO"}
@@ -41,7 +41,7 @@ class reloadImages (Operator):
 # ------------------------ SAVE INCREMENTAL ------------------------
 
 class saveIncremental(Operator):
-    """Saves incremental version of the blend file Ex: “_v01” "_v02"."""
+    """Saves incremental version of the blend file Ex: '_v01' '_v02'"""
     bl_idname = "file.save_incremental_osc"
     bl_label = "Save Incremental File"
     bl_options = {"REGISTER", "UNDO"}
@@ -72,7 +72,8 @@ bpy.types.Scene.oscReplaceText = bpy.props.StringProperty(
 
 
 class replaceFilePath(Operator):
-    """Replace the paths set on the “search test” field by the ones in “replace” field. "_v01" 

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list