[Bf-extensions-cvs] [bd93f4ae] master: NP Station cleanup - removing trailing whitespace

NBurn noreply at git.blender.org
Sat Sep 30 05:06:16 CEST 2017


Commit: bd93f4aed40254cf9f2605fbf29499f4868ff05c
Author: NBurn
Date:   Fri Sep 29 23:05:43 2017 -0400
Branches: master
https://developer.blender.org/rBACbd93f4aed40254cf9f2605fbf29499f4868ff05c

NP Station cleanup - removing trailing whitespace

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

M	np_station/__init__.py
M	np_station/np_float_box.py
M	np_station/np_float_rectangle.py
M	np_station/np_point_align.py
M	np_station/np_point_array.py
M	np_station/np_point_copy.py
M	np_station/np_point_dimension.py
M	np_station/np_point_distance.py
M	np_station/np_point_instance.py
M	np_station/np_point_move.py
M	np_station/np_point_scale.py
M	np_station/np_roto_move.py
M	np_station/np_shader_brush.py
M	np_station/utils_geometry.py
M	np_station/utils_graphics.py

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

diff --git a/np_station/__init__.py b/np_station/__init__.py
index d181c399..ee24e7e8 100644
--- a/np_station/__init__.py
+++ b/np_station/__init__.py
@@ -26,7 +26,7 @@ bl_info = {
     'warning': '',
     'description': 'Set of utilities for CAD-like precision modeling',
     'wiki_url': 'https://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Object/NP_Station',
-    'category': '3D View'} 
+    'category': '3D View'}
 
 if 'bpy' in locals():
     import imp
@@ -82,7 +82,7 @@ class NP020BasePanel(bpy.types.Panel):
         col.operator('object.np_020_float_rectangle', icon='MESH_PLANE', text='float_rectangle')
         col.operator('object.np_020_float_box', icon='MESH_CUBE', text='float_box')
 
-        self.layout.separator() 
+        self.layout.separator()
         row = self.layout.row(True)
         col = row.column(True)
         col.label(" Modify:",icon = "MODIFIER")
@@ -96,7 +96,7 @@ class NP020BasePanel(bpy.types.Panel):
         col.operator('object.np_020_point_align', icon='ORTHO', text='point_align')
 
 
-        self.layout.separator() 
+        self.layout.separator()
         row = self.layout.row(True)
         col = row.column(True)
         col.label(" Transfer:",icon = 'BRUSH_DATA')
@@ -104,7 +104,7 @@ class NP020BasePanel(bpy.types.Panel):
         col.operator('object.np_020_shader_brush', icon='MOD_DYNAMICPAINT', text='shader_brush')
 
 
-        self.layout.separator() 
+        self.layout.separator()
         row = self.layout.row(True)
         col = row.column(True)
         col.label(" Measure:",icon = "ALIGN")
@@ -296,7 +296,7 @@ class NP020Preferences(bpy.types.AddonPreferences):
 
     nppi_suffix = bpy.props.EnumProperty(
         name='Unit suffix',
-        items=(("'","'",''), ('"','"',''), ('thou','thou',''), ('km','km',''), ('m','m',''), ('cm','cm',''), ('mm','mm',''), ('nm','nm',''), ('None','None','')),       
+        items=(("'","'",''), ('"','"',''), ('thou','thou',''), ('km','km',''), ('m','m',''), ('cm','cm',''), ('mm','mm',''), ('nm','nm',''), ('None','None','')),
         default='cm',
         description='Add a unit extension after the numerical distance ')
 
@@ -494,7 +494,7 @@ class NP020Preferences(bpy.types.AddonPreferences):
 
     nppa_suffix = bpy.props.EnumProperty(
         name='Unit suffix',
-        items=(("'","'",''), ('"','"',''), ('thou','thou',''), ('km','km',''), ('m','m',''), ('cm','cm',''), ('mm','mm',''), ('nm','nm',''), ('None','None','')),       
+        items=(("'","'",''), ('"','"',''), ('thou','thou',''), ('km','km',''), ('m','m',''), ('cm','cm',''), ('mm','mm',''), ('nm','nm',''), ('None','None','')),
         default='cm',
         description='Add a unit extension after the numerical distance ')
 
@@ -634,7 +634,7 @@ class NP020Preferences(bpy.types.AddonPreferences):
 
     npfr_suffix = bpy.props.EnumProperty(
         name='Unit suffix',
-        items=(("'","'",''), ('"','"',''), ('thou','thou',''), ('km','km',''), ('m','m',''), ('cm','cm',''), ('mm','mm',''), ('nm','nm',''), ('None','None','')),       
+        items=(("'","'",''), ('"','"',''), ('thou','thou',''), ('km','km',''), ('m','m',''), ('cm','cm',''), ('mm','mm',''), ('nm','nm',''), ('None','None','')),
         default='cm',
         description='Add a unit extension after the numerical distance ')
 
diff --git a/np_station/np_float_box.py b/np_station/np_float_box.py
index 2c9bf528..b6d73fb5 100644
--- a/np_station/np_float_box.py
+++ b/np_station/np_float_box.py
@@ -109,7 +109,7 @@ class NP020FB:
 def NPFB_scene_update(context):
 
     if bpy.data.objects.is_updated:
-        region = bpy.context.region 
+        region = bpy.context.region
         rv3d = bpy.context.region_data
         helper = NP020FB.helper
         co = helper.location
@@ -123,7 +123,7 @@ class NPFBGetContext(bpy.types.Operator):
     bl_options = {'INTERNAL'}
 
     def execute(self, context):
-        NP020FB.use_snap = copy.deepcopy(bpy.context.tool_settings.use_snap) 
+        NP020FB.use_snap = copy.deepcopy(bpy.context.tool_settings.use_snap)
         NP020FB.snap_element = copy.deepcopy(bpy.context.tool_settings.snap_element)
         NP020FB.snap_target = copy.deepcopy(bpy.context.tool_settings.snap_target)
         NP020FB.pivot_point = copy.deepcopy(bpy.context.space_data.pivot_point)
@@ -194,7 +194,7 @@ class NPFBAddHelper(bpy.types.Operator):
     bl_options = {'INTERNAL'}
 
     def execute(self, context):
-        np_print('03_AddHelper_START', ';', 'NP020FB.flag = ', NP020FB.flag)  
+        np_print('03_AddHelper_START', ';', 'NP020FB.flag = ', NP020FB.flag)
         enterloc = NP020FB.enterloc
         bpy.ops.object.add(type = 'MESH',location = enterloc)
         helper = bpy.context.active_object
@@ -474,7 +474,7 @@ def DRAW_Overlay(self, context):
     badge_mode = 'RUN'
 
 
-    if qdef != None: 
+    if qdef != None:
         matrix.rotate(ro_hor)
         matrix.rotate(qdef)
     NP020FB.matrix = matrix
@@ -727,7 +727,7 @@ class NPFBRestoreContext(bpy.types.Operator):
         bpy.ops.object.select_all(action = 'DESELECT')
         helper.select = True
         bpy.ops.object.delete('EXEC_DEFAULT')
-        if boxob == None: 
+        if boxob == None:
             for ob in selob:
                 ob.select = True
             if NP020FB.acob is not None:
diff --git a/np_station/np_float_rectangle.py b/np_station/np_float_rectangle.py
index 3e3a9195..4f260175 100644
--- a/np_station/np_float_rectangle.py
+++ b/np_station/np_float_rectangle.py
@@ -108,7 +108,7 @@ class NP020FR:
 def NPFR_scene_update(context):
 
     if bpy.data.objects.is_updated:
-        region = bpy.context.region 
+        region = bpy.context.region
         rv3d = bpy.context.region_data
         helper = NP020FR.helper
         co = helper.location
@@ -122,7 +122,7 @@ class NPFRGetContext(bpy.types.Operator):
     bl_options = {'INTERNAL'}
 
     def execute(self, context):
-        NP020FR.use_snap = copy.deepcopy(bpy.context.tool_settings.use_snap) 
+        NP020FR.use_snap = copy.deepcopy(bpy.context.tool_settings.use_snap)
         NP020FR.snap_element = copy.deepcopy(bpy.context.tool_settings.snap_element)
         NP020FR.snap_target = copy.deepcopy(bpy.context.tool_settings.snap_target)
         NP020FR.pivot_point = copy.deepcopy(bpy.context.space_data.pivot_point)
@@ -193,7 +193,7 @@ class NPFRAddHelper(bpy.types.Operator):
     bl_options = {'INTERNAL'}
 
     def execute(self, context):
-        np_print('03_AddHelper_START', ';', 'NP020FR.flag = ', NP020FR.flag)  
+        np_print('03_AddHelper_START', ';', 'NP020FR.flag = ', NP020FR.flag)
         enterloc = NP020FR.enterloc
         bpy.ops.object.add(type = 'MESH',location = enterloc)
         helper = bpy.context.active_object
@@ -471,7 +471,7 @@ def DRAW_Overlay(self, context):
     badge_mode = 'RUN'
 
 
-    if qdef != None: 
+    if qdef != None:
         matrix.rotate(ro_hor)
         matrix.rotate(qdef)
     NP020FR.matrix = matrix
@@ -681,7 +681,7 @@ class NPFRRestoreContext(bpy.types.Operator):
         bpy.ops.object.select_all(action = 'DESELECT')
         helper.select = True
         bpy.ops.object.delete('EXEC_DEFAULT')
-        if recob == None: 
+        if recob == None:
             for ob in selob:
                 ob.select = True
             if NP020FR.acob is not None:
diff --git a/np_station/np_point_align.py b/np_station/np_point_align.py
index a5a46c6c..44a7f143 100644
--- a/np_station/np_point_align.py
+++ b/np_station/np_point_align.py
@@ -64,7 +64,7 @@ class NP020PL:
 def NPPL_scene_update(context):
 
     if bpy.data.objects.is_updated:
-        region = bpy.context.region 
+        region = bpy.context.region
         rv3d = bpy.context.region_data
         helper = NP020PL.helper
         co = helper.location
@@ -81,7 +81,7 @@ class NPPLGetContext(bpy.types.Operator):
         if bpy.context.selected_objects == []:
             self.report({'WARNING'}, "Please select objects first")
             return {'CANCELLED'}
-        NP020PL.use_snap = copy.deepcopy(bpy.context.tool_settings.use_snap) 
+        NP020PL.use_snap = copy.deepcopy(bpy.context.tool_settings.use_snap)
         NP020PL.snap_element = copy.deepcopy(bpy.context.tool_settings.snap_element)
         NP020PL.snap_target = copy.deepcopy(bpy.context.tool_settings.snap_target)
         NP020PL.pivot_point = copy.deepcopy(bpy.context.space_data.pivot_point)
@@ -152,7 +152,7 @@ class NPPLAddHelper(bpy.types.Operator):
     bl_options = {'INTERNAL'}
 
     def execute(self, context):
-        np_print('03_AddHelper_START', ';', 'NP020PL.flag = ', NP020PL.flag)  
+        np_print('03_AddHelper_START', ';', 'NP020PL.flag = ', NP020PL.flag)
         enterloc = NP020PL.enterloc
         bpy.ops.object.add(type = 'MESH',location = enterloc)
         helper = bpy.context.active_object
diff --git a/np_station/np_point_array.py b/np_station/np_point_array.py
index 761f84dc..379be608 100644
--- a/np_station/np_point_array.py
+++ b/np_station/np_point_array.py
@@ -145,7 +145,7 @@ class NPPAGetContext(bpy.types.Operator):
         if bpy.context.selected_objects == []:
             self.report({'WARNING'}, "Please select objects first")
             return {'CANCELLED'}
-        NP020PA.use_snap = copy.deepcopy(bpy.context.tool_settings.use_snap) 
+        NP020PA.use_snap = copy.deepcopy(bpy.context.tool_settings.use_snap)
         NP020PA.snap_element = copy.deepcopy(bpy.context.tool_settings.snap_element)
         NP020PA.snap_target = copy.deepcopy(bpy.context.tool_settings.snap_target)
         NP020PA.pivot_point = copy.deepcopy(bpy.context.space_data.pivot_point)
@@ -223,7 +223,7 @@ class NPPAAddHelpers(bpy.types.Operator):
     bl_options = {'INTERNAL'}
 
     def execute(self, context):
-        np_print('03_AddHelpers_START', ';', 'flag = ', NP020PA.flag)  
+        np_print('03_AddHelpers_START', ';', 'flag = ', NP020PA.flag)
         enterloc = NP020PA.enterloc
         bpy.ops.object.add(type = 'MESH',location = enterloc)
         take = bpy.context.active_object
@@ -321,7 +321,7 @@ class NPPARunTranslate(bpy.types.Operator):
             bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW')
             take.hide = True
             place.hide = True

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list