[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2490] contrib/py/scripts/addons/ cursor_control: Small edit to get rid of warnings from blender.

Morgan Mörtsell morgan at mortsell.com
Tue Oct 18 21:11:13 CEST 2011


Revision: 2490
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2490
Author:   seminumerical
Date:     2011-10-18 19:11:12 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
Small edit to get rid of warnings from blender.

Modified Paths:
--------------
    contrib/py/scripts/addons/cursor_control/history.py
    contrib/py/scripts/addons/cursor_control/memory.py
    contrib/py/scripts/addons/cursor_control/operators.py

Modified: contrib/py/scripts/addons/cursor_control/history.py
===================================================================
--- contrib/py/scripts/addons/cursor_control/history.py	2011-10-18 17:54:39 UTC (rev 2489)
+++ contrib/py/scripts/addons/cursor_control/history.py	2011-10-18 19:11:12 UTC (rev 2490)
@@ -106,9 +106,9 @@
 
 
 class VIEW3D_OT_cursor_previous(bpy.types.Operator):
-    '''Previous cursor location.'''
+    '''Previous cursor location'''
     bl_idname = "view3d.cursor_previous"
-    bl_label = "Previous cursor location."
+    bl_label = "Previous cursor location"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -122,9 +122,9 @@
 
 
 class VIEW3D_OT_cursor_next(bpy.types.Operator):
-    '''Next cursor location.'''
+    '''Next cursor location'''
     bl_idname = "view3d.cursor_next"
-    bl_label = "Next cursor location."
+    bl_label = "Next cursor location"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -138,9 +138,9 @@
 
 
 class VIEW3D_OT_cursor_history_show(bpy.types.Operator):
-    '''Show cursor trace.'''
+    '''Show cursor trace'''
     bl_idname = "view3d.cursor_history_show"
-    bl_label = "Show cursor trace."
+    bl_label = "Show cursor trace"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -155,9 +155,9 @@
 
 
 class VIEW3D_OT_cursor_history_hide(bpy.types.Operator):
-    '''Hide cursor trace.'''
+    '''Hide cursor trace'''
     bl_idname = "view3d.cursor_history_hide"
-    bl_label = "Hide cursor trace."
+    bl_label = "Hide cursor trace"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):

Modified: contrib/py/scripts/addons/cursor_control/memory.py
===================================================================
--- contrib/py/scripts/addons/cursor_control/memory.py	2011-10-18 17:54:39 UTC (rev 2489)
+++ contrib/py/scripts/addons/cursor_control/memory.py	2011-10-18 19:11:12 UTC (rev 2490)
@@ -69,9 +69,9 @@
 
 
 class VIEW3D_OT_cursor_memory_save(bpy.types.Operator):
-    '''Save cursor location.'''
+    '''Save cursor location'''
     bl_idname = "view3d.cursor_memory_save"
-    bl_label = "Save cursor location."
+    bl_label = "Save cursor location"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -86,9 +86,9 @@
 
 
 class VIEW3D_OT_cursor_memory_swap(bpy.types.Operator):
-    '''Swap cursor location.'''
+    '''Swap cursor location'''
     bl_idname = "view3d.cursor_memory_swap"
-    bl_label = "Swap cursor location."
+    bl_label = "Swap cursor location"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -104,9 +104,9 @@
 
 
 class VIEW3D_OT_cursor_memory_recall(bpy.types.Operator):
-    '''Recall cursor location.'''
+    '''Recall cursor location'''
     bl_idname = "view3d.cursor_memory_recall"
-    bl_label = "Recall cursor location."
+    bl_label = "Recall cursor location"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -120,9 +120,9 @@
 
 
 class VIEW3D_OT_cursor_memory_show(bpy.types.Operator):
-    '''Show cursor memory.'''
+    '''Show cursor memory'''
     bl_idname = "view3d.cursor_memory_show"
-    bl_label = "Show cursor memory."
+    bl_label = "Show cursor memory"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -137,9 +137,9 @@
 
 
 class VIEW3D_OT_cursor_memory_hide(bpy.types.Operator):
-    '''Hide cursor memory.'''
+    '''Hide cursor memory'''
     bl_idname = "view3d.cursor_memory_hide"
-    bl_label = "Hide cursor memory."
+    bl_label = "Hide cursor memory"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -304,4 +304,4 @@
         bgl.glVertex2f(location[0], location[1]+offset2)
         bgl.glEnd()
         
-       
\ No newline at end of file
+       

Modified: contrib/py/scripts/addons/cursor_control/operators.py
===================================================================
--- contrib/py/scripts/addons/cursor_control/operators.py	2011-10-18 17:54:39 UTC (rev 2489)
+++ contrib/py/scripts/addons/cursor_control/operators.py	2011-10-18 19:11:12 UTC (rev 2490)
@@ -50,9 +50,9 @@
 
 
 class VIEW3D_OT_cursor_to_origin(bpy.types.Operator):
-    '''Move to world origin.'''
+    '''Move to world origin'''
     bl_idname = "view3d.cursor_to_origin"
-    bl_label = "Move to world origin."
+    bl_label = "Move to world origin"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -67,9 +67,9 @@
 
 
 class VIEW3D_OT_cursor_to_active_object_center(bpy.types.Operator):
-    '''Move to active object origin.'''
+    '''Move to active object origin'''
     bl_idname = "view3d.cursor_to_active_object_center"
-    bl_label = "Move to active object origin."
+    bl_label = "Move to active object origin"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -84,9 +84,9 @@
 
 
 #class VIEW3D_OT_cursor_to_nearest_object(bpy.types.Operator):
-    #'''Move to center of nearest object.'''
+    #'''Move to center of nearest object'''
     #bl_idname = "view3d.cursor_to_nearest_object"
-    #bl_label = "Move to center of nearest object."
+    #bl_label = "Move to center of nearest object"
     #bl_options = {'REGISTER'}
 
     #def modal(self, context, event):
@@ -99,9 +99,9 @@
 
 
 #class VIEW3D_OT_cursor_to_selection_midpoint(bpy.types.Operator):
-    #'''Move to active objects median.'''
+    #'''Move to active objects median'''
     #bl_idname = "view3d.cursor_to_selection_midpoint"
-    #bl_label = "Move to active objects median."
+    #bl_label = "Move to active objects median"
     #bl_options = {'REGISTER'}
 
     #def modal(self, context, event):
@@ -122,9 +122,9 @@
 
 
 class VIEW3D_OT_cursor_to_sl(bpy.types.Operator):
-    '''Move to saved location.'''
+    '''Move to saved location'''
     bl_idname = "view3d.cursor_to_sl"
-    bl_label = "Move to saved location."
+    bl_label = "Move to saved location"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -141,9 +141,9 @@
 
 
 class VIEW3D_OT_cursor_to_sl_mirror(bpy.types.Operator):
-    '''Mirror cursor around SL or selection.'''
+    '''Mirror cursor around SL or selection'''
     bl_idname = "view3d.cursor_to_sl_mirror"
-    bl_label = "Mirror cursor around SL or selection."
+    bl_label = "Mirror cursor around SL or selection"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -208,9 +208,9 @@
 
 
 class VIEW3D_OT_cursor_to_vertex(bpy.types.Operator):
-    '''Move to closest vertex.'''
+    '''Move to closest vertex'''
     bl_idname = "view3d.cursor_to_vertex"
-    bl_label = "Move to closest vertex."
+    bl_label = "Move to closest vertex"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -243,9 +243,9 @@
 
 
 class VIEW3D_OT_cursor_to_line(bpy.types.Operator):
-    '''Move to closest point on line.'''
+    '''Move to closest point on line'''
     bl_idname = "view3d.cursor_to_line"
-    bl_label = "Move to closest point on line."
+    bl_label = "Move to closest point on line"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -289,9 +289,9 @@
 
 
 class VIEW3D_OT_cursor_to_edge(bpy.types.Operator):
-    '''Move to closest point on edge.'''
+    '''Move to closest point on edge'''
     bl_idname = "view3d.cursor_to_edge"
-    bl_label = "Move to closest point on edge."
+    bl_label = "Move to closest point on edge"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -335,7 +335,7 @@
 
 
 class VIEW3D_OT_cursor_to_plane(bpy.types.Operator):
-    '''Move to closest point on a plane.'''
+    '''Move to closest point on a plane'''
     bl_idname = "view3d.cursor_to_plane"
     bl_label = "Move to closest point on a plane"
     bl_options = {'REGISTER'}
@@ -385,7 +385,7 @@
 
 
 class VIEW3D_OT_cursor_to_face(bpy.types.Operator):
-    '''Move to closest point on a face.'''
+    '''Move to closest point on a face'''
     bl_idname = "view3d.cursor_to_face"
     bl_label = "Move to closest point on a face"
     bl_options = {'REGISTER'}
@@ -447,9 +447,9 @@
 
 
 class VIEW3D_OT_cursor_to_vertex_median(bpy.types.Operator):
-    '''Move to median of vertices.'''
+    '''Move to median of vertices'''
     bl_idname = "view3d.cursor_to_vertex_median"
-    bl_label = "Move to median of vertices."
+    bl_label = "Move to median of vertices"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -475,9 +475,9 @@
 
 
 class VIEW3D_OT_cursor_to_linex(bpy.types.Operator):
-    '''Alternate between closest encounter points of two lines.'''
+    '''Alternate between closest encounter points of two lines'''
     bl_idname = "view3d.cursor_to_linex"
-    bl_label = "Alternate between to closest encounter points of two lines."
+    bl_label = "Alternate between to closest encounter points of two lines"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -517,9 +517,9 @@
 
 
 class VIEW3D_OT_cursor_to_cylinderaxis(bpy.types.Operator):
-    '''Move to closest point on cylinder axis.'''
+    '''Move to closest point on cylinder axis'''
     bl_idname = "view3d.cursor_to_cylinderaxis"
-    bl_label = "Move to closest point on cylinder axis."
+    bl_label = "Move to closest point on cylinder axis"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -549,9 +549,9 @@
 
 
 class VIEW3D_OT_cursor_to_spherecenter(bpy.types.Operator):
-    '''Move to center of cylinder or sphere.'''
+    '''Move to center of cylinder or sphere'''
     bl_idname = "view3d.cursor_to_spherecenter"
-    bl_label = "Move to center of cylinder or sphere."
+    bl_label = "Move to center of cylinder or sphere"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -597,9 +597,9 @@
 
 
 class VIEW3D_OT_cursor_to_perimeter(bpy.types.Operator):
-    '''Move to perimeter of cylinder or sphere.'''
+    '''Move to perimeter of cylinder or sphere'''
     bl_idname = "view3d.cursor_to_perimeter"
-    bl_label = "Move to perimeter of cylinder or sphere."
+    bl_label = "Move to perimeter of cylinder or sphere"
     bl_options = {'REGISTER'}
 
     def modal(self, context, event):
@@ -645,9 +645,9 @@
 
 
 #class VIEW3D_OT_cursor_offset_from_radius(bpy.types.Operator):
-    #'''Calculate offset from radius.'''
+    #'''Calculate offset from radius'''
     #bl_idname = "view3d.cursor_offset_from_radius"
-    #bl_label = "Calculate offset from radius."
+    #bl_label = "Calculate offset from radius"
     #bl_options = {'REGISTER'}
 

@@ Diff output truncated at 10240 characters. @@


More information about the Bf-extensions-cvs mailing list