[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2916] trunk/py/scripts/addons: - Removed dots from the end of description

Sergey Sharybin sergey.vfx at gmail.com
Wed Jan 18 21:51:27 CET 2012


Revision: 2916
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2916
Author:   nazgul
Date:     2012-01-18 20:51:26 +0000 (Wed, 18 Jan 2012)
Log Message:
-----------
- Removed dots from the end of description
- Check for keymap availability to suppress warning messages when running
  blender in background mode

Modified Paths:
--------------
    trunk/py/scripts/addons/add_curve_torus_knots.py
    trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_extra_objects.py
    trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gears.py
    trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gemstones.py
    trunk/py/scripts/addons/development_api_navigator.py
    trunk/py/scripts/addons/io_export_pc2.py
    trunk/py/scripts/addons/io_export_unreal_psk_psa.py
    trunk/py/scripts/addons/io_mesh_pdb/__init__.py
    trunk/py/scripts/addons/mesh_bsurfaces.py
    trunk/py/scripts/addons/object_add_chain.py
    trunk/py/scripts/addons/object_fracture/fracture_ops.py
    trunk/py/scripts/addons/rigify/ui.py
    trunk/py/scripts/addons/space_view3d_copy_attributes.py
    trunk/py/scripts/addons/space_view3d_materials_utils.py
    trunk/py/scripts/addons/space_view3d_spacebar_menu.py

Modified: trunk/py/scripts/addons/add_curve_torus_knots.py
===================================================================
--- trunk/py/scripts/addons/add_curve_torus_knots.py	2012-01-18 20:28:08 UTC (rev 2915)
+++ trunk/py/scripts/addons/add_curve_torus_knots.py	2012-01-18 20:51:26 UTC (rev 2916)
@@ -130,7 +130,7 @@
     torus_res = IntProperty(name="Resoulution",
                 default=100,
                 min=3, soft_min=3,
-                description='Resolution, Number of controlverticies.')
+                description='Resolution, Number of controlverticies')
     torus_p = IntProperty(name="p",
                 default=2,
                 min=1, soft_min=1,

Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_extra_objects.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_extra_objects.py	2012-01-18 20:28:08 UTC (rev 2915)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_extra_objects.py	2012-01-18 20:51:26 UTC (rev 2916)
@@ -357,7 +357,7 @@
     return verts,faces
 
 class AddSqorus(bpy.types.Operator):
-    '''Add a sqorus mesh.'''
+    '''Add a sqorus mesh'''
     bl_idname = "mesh.primitive_sqorus_add"
     bl_label = "Add Sqorus"
     bl_options = {'REGISTER', 'UNDO', 'PRESET'}
@@ -386,7 +386,7 @@
 
 
 class AddWedge(bpy.types.Operator):
-    '''Add a wedge mesh.'''
+    '''Add a wedge mesh'''
     bl_idname = "mesh.primitive_wedge_add"
     bl_label = "Add Wedge"
     bl_options = {'REGISTER', 'UNDO', 'PRESET'}
@@ -420,7 +420,7 @@
 
 
 class AddStar(bpy.types.Operator):
-    '''Add a star mesh.'''
+    '''Add a star mesh'''
     bl_idname = "mesh.primitive_star_add"
     bl_label = "Add Star"
     bl_options = {'REGISTER', 'UNDO', 'PRESET'}

Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gears.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gears.py	2012-01-18 20:28:08 UTC (rev 2915)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gears.py	2012-01-18 20:51:26 UTC (rev 2916)
@@ -570,7 +570,7 @@
 
 
 class AddGear(bpy.types.Operator):
-    '''Add a gear mesh.'''
+    '''Add a gear mesh'''
     bl_idname = "mesh.primitive_gear"
     bl_label = "Add Gear"
     bl_options = {'REGISTER', 'UNDO', 'PRESET'}
@@ -676,7 +676,7 @@
 
 
 class AddWormGear(bpy.types.Operator):
-    '''Add a worm gear mesh.'''
+    '''Add a worm gear mesh'''
     bl_idname = "mesh.primitive_worm_gear"
     bl_label = "Add Worm Gear"
     bl_options = {'REGISTER', 'UNDO', 'PRESET'}

Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gemstones.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gemstones.py	2012-01-18 20:28:08 UTC (rev 2915)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_gemstones.py	2012-01-18 20:51:26 UTC (rev 2916)
@@ -238,7 +238,7 @@
 
 
 class AddDiamond(bpy.types.Operator):
-    '''Add a diamond mesh.'''
+    '''Add a diamond mesh'''
     bl_idname = "mesh.primitive_diamond_add"
     bl_label = "Add Diamond"
     bl_options = {'REGISTER', 'UNDO', 'PRESET'}

Modified: trunk/py/scripts/addons/development_api_navigator.py
===================================================================
--- trunk/py/scripts/addons/development_api_navigator.py	2012-01-18 20:28:08 UTC (rev 2915)
+++ trunk/py/scripts/addons/development_api_navigator.py	2012-01-18 20:51:26 UTC (rev 2916)
@@ -659,15 +659,17 @@
 
 def register_keymaps():
     kc = bpy.context.window_manager.keyconfigs.addon
-    km = kc.keymaps.new(name="Text", space_type='TEXT_EDITOR')
-    km.keymap_items.new('api_navigator.toggle_doc', 'ESC', 'PRESS')
+    if kc:
+        km = kc.keymaps.new(name="Text", space_type='TEXT_EDITOR')
+        km.keymap_items.new('api_navigator.toggle_doc', 'ESC', 'PRESS')
 
 
 def unregister_keymaps():
     kc = bpy.context.window_manager.keyconfigs.addon
-    km = kc.keymaps["Text"]
-    kmi = km.keymap_items["api_navigator.toggle_doc"]
-    km.keymap_items.remove(kmi)
+    if kc:
+        km = kc.keymaps["Text"]
+        kmi = km.keymap_items["api_navigator.toggle_doc"]
+        km.keymap_items.remove(kmi)
 
 
 def register():

Modified: trunk/py/scripts/addons/io_export_pc2.py
===================================================================
--- trunk/py/scripts/addons/io_export_pc2.py	2012-01-18 20:28:08 UTC (rev 2915)
+++ trunk/py/scripts/addons/io_export_pc2.py	2012-01-18 20:51:26 UTC (rev 2916)
@@ -105,7 +105,7 @@
 
 ###### EXPORT OPERATOR #######
 class Export_pc2(bpy.types.Operator, ExportHelper):
-    '''Exports the active Object as a .pc2 Pointcache file.'''
+    '''Exports the active Object as a .pc2 Pointcache file'''
     bl_idname = "export_shape.pc2"
     bl_label = "Export Pointcache (.pc2)"
 

Modified: trunk/py/scripts/addons/io_export_unreal_psk_psa.py
===================================================================
--- trunk/py/scripts/addons/io_export_unreal_psk_psa.py	2012-01-18 20:28:08 UTC (rev 2915)
+++ trunk/py/scripts/addons/io_export_unreal_psk_psa.py	2012-01-18 20:51:26 UTC (rev 2916)
@@ -1808,7 +1808,7 @@
     
 bpy.types.Scene.unrealexport_settings = EnumProperty(
     name="Export:",
-    description="Select a export settings (psk/psa/all)...",
+    description="Select a export settings (psk/psa/all)",
     items = [("0","PSK","Export PSK"),
              ("1","PSA","Export PSA"),
              ("2","ALL","Export ALL")],
@@ -1824,7 +1824,7 @@
 
 bpy.types.Scene.unrealtriangulatebool = BoolProperty(
     name="Triangulate Mesh",
-    description="Convert Quad to Tri Mesh Boolean...",
+    description="Convert Quad to Tri Mesh Boolean",
     default=False)
 
 bpy.types.Scene.unrealignoreactionmatchcount = BoolProperty(
@@ -1872,7 +1872,7 @@
 class OBJECT_OT_add_remove_Collection_Items_UE(bpy.types.Operator):
     bl_label = "Add or Remove"
     bl_idname = "collection.add_remove_ueactions"
-    __doc__ = """Button for Add, Remove, Refresh Action Set(s) list."""
+    __doc__ = """Button for Add, Remove, Refresh Action Set(s) list"""
     set = bpy.props.StringProperty()
  
     def invoke(self, context, event):
@@ -1931,7 +1931,7 @@
     '''Export Skeleton Mesh / Animation Data file(s)'''
     bl_idname = "export_anim.udk" # this is important since its how bpy.ops.export.udk_anim_data is constructed
     bl_label = "Export PSK/PSA"
-    __doc__ = """One mesh and one armature else select one mesh or armature to be exported."""
+    __doc__ = """One mesh and one armature else select one mesh or armature to be exported"""
 
     # List of operator properties, the attributes will be assigned
     # to the class instance from the operator settings before calling.
@@ -2067,7 +2067,7 @@
     global exportmessage
     bl_idname = "export_mesh.udk"  # XXX, name???
     bl_label = "Unreal Export"
-    __doc__ = """Select export setting for .psk/.psa or both."""
+    __doc__ = """Select export setting for .psk/.psa or both"""
     
     def invoke(self, context, event):
         print("Init Export Script:")
@@ -2094,7 +2094,7 @@
     global exportmessage
     bl_idname = "object.toggleconsle"  # XXX, name???
     bl_label = "Toggle Console"
-    __doc__ = "Show or Hide Console."
+    __doc__ = "Show or Hide Console"
     
     def invoke(self, context, event):
         bpy.ops.wm.console_toggle()
@@ -2103,7 +2103,7 @@
 class OBJECT_OT_UTSelectedFaceSmooth(bpy.types.Operator):
     bl_idname = "object.utselectfacesmooth"  # XXX, name???
     bl_label = "Select Smooth faces"
-    __doc__ = """It will only select smooth faces that is select mesh."""
+    __doc__ = """It will only select smooth faces that is select mesh"""
     
     def invoke(self, context, event):
         print("----------------------------------------")
@@ -2158,7 +2158,7 @@
 class OBJECT_OT_MeshClearWeights(bpy.types.Operator):
     bl_idname = "object.meshclearweights"  # XXX, name???
     bl_label = "Mesh Clear Weights"
-    __doc__ = """Clear selected mesh vertex group weights for the bones. Be sure you unparent the armature."""
+    __doc__ = """Clear selected mesh vertex group weights for the bones. Be sure you unparent the armature"""
     
     def invoke(self, context, event):
         for obj in bpy.data.objects:
@@ -2171,7 +2171,7 @@
 class OBJECT_OT_UTRebuildArmature(bpy.types.Operator):
     bl_idname = "object.utrebuildarmature"  # XXX, name???
     bl_label = "Rebuild Armature"
-    __doc__ = """If mesh is deform when importing to unreal engine try this. It rebuild the bones one at the time by select one armature object scrape to raw setup build. Note the scale will be 1:1 for object mode. To keep from deforming."""
+    __doc__ = """If mesh is deform when importing to unreal engine try this. It rebuild the bones one at the time by select one armature object scrape to raw setup build. Note the scale will be 1:1 for object mode. To keep from deforming"""
     
     def invoke(self, context, event):
         print("----------------------------------------")
@@ -2242,7 +2242,7 @@
 class OBJECT_OT_UTRebuildMesh(bpy.types.Operator):
     bl_idname = "object.utrebuildmesh"  # XXX, name???
     bl_label = "Rebuild Mesh"
-    __doc__ = """It rebuild the mesh from scrape from the selected mesh object. Note the scale will be 1:1 for object mode. To keep from deforming."""
+    __doc__ = """It rebuild the mesh from scrape from the selected mesh object. Note the scale will be 1:1 for object mode. To keep from deforming"""
     
     def invoke(self, context, event):
         print("----------------------------------------")

Modified: trunk/py/scripts/addons/io_mesh_pdb/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/__init__.py	2012-01-18 20:28:08 UTC (rev 2915)
+++ trunk/py/scripts/addons/io_mesh_pdb/__init__.py	2012-01-18 20:51:26 UTC (rev 2916)
@@ -234,7 +234,7 @@
         description="The sticks are round (sectors are not visible)")     
     scn.use_atom_pdb_sticks_bonds = BoolProperty(
         name="Bonds", default=False,
-        description="Show double and tripple bonds.")
+        description="Show double and tripple bonds")
     scn.atom_pdb_sticks_dist = FloatProperty(
         name="Distance", default = 1.1, min=1.0, max=3.0,

@@ Diff output truncated at 10240 characters. @@


More information about the Bf-extensions-cvs mailing list