[Bf-extensions-cvs] [666c4b77] master: Cleanup: trailing space

Campbell Barton noreply at git.blender.org
Thu Mar 5 02:26:26 CET 2020


Commit: 666c4b7785c35502366d08dc674a6df311d0a8ac
Author: Campbell Barton
Date:   Thu Mar 5 12:20:16 2020 +1100
Branches: master
https://developer.blender.org/rBAC666c4b7785c35502366d08dc674a6df311d0a8ac

Cleanup: trailing space

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

M	add_dimension.py
M	add_mesh_clusters/__init__.py
M	exact_edit/xedit_free_rotate.py
M	exact_edit/xedit_set_meas.py
M	io_import_sound_to_anim.py
M	object_fracture_crack/__init__.py
M	object_fracture_crack/operator.py
M	object_fracture_crack/process/cell_calc.py
M	object_fracture_crack/process/cell_functions.py
M	object_fracture_crack/process/cell_main.py
M	object_fracture_crack/process/crack_functions.py
M	object_fracture_crack/process/material_functions.py
M	object_fracture_crack/utilities.py
M	object_mesh_versions.py
M	render_to_print.py

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

diff --git a/add_dimension.py b/add_dimension.py
index c501e1ea..cfdbbb4b 100644
--- a/add_dimension.py
+++ b/add_dimension.py
@@ -1524,7 +1524,7 @@ def createCurve(vertArray, self, align_matrix):
 
     # set curveOptions
     newCurve.dimensions = '2D'
-    newCurve.fill_mode = 'BOTH'    
+    newCurve.fill_mode = 'BOTH'
     newSpline.use_cyclic_u = True
     newSpline.use_endpoint_u = True
 
@@ -1915,7 +1915,7 @@ def main(self, align_matrix):
                 if self.Angle_Type == 'C':
                    b = ablength(0, self.Dimension_startlocation.y, self.Dimension_startlocation.z, 0, self.Dimension_endlocation.y, self.Dimension_endlocation.z)
                    a = ablength(0, self.Dimension_startlocation.y, self.Dimension_startlocation.z, 0, self.Dimension_endanglelocation.y, self.Dimension_endanglelocation.z)
-                   c = ablength(0, self.Dimension_endanglelocation.y, self.Dimension_endanglelocation.z, 0, self.Dimension_endlocation.y, self.Dimension_endlocation.z) 
+                   c = ablength(0, self.Dimension_endanglelocation.y, self.Dimension_endanglelocation.z, 0, self.Dimension_endlocation.y, self.Dimension_endlocation.z)
             if self.Dimension_liberty == '3D':
                 if self.Angle_Type == 'A':
                    c = ablength(self.Dimension_startlocation.x, self.Dimension_startlocation.y, self.Dimension_startlocation.z, self.Dimension_endlocation.x, self.Dimension_endlocation.y, self.Dimension_endlocation.z)
@@ -2063,7 +2063,7 @@ class Dimension(bpy.types.Operator):
     bl_label = "Dimension"
     bl_options = {'REGISTER', 'UNDO', 'PRESET'}
     bl_description = "add dimension"
-    
+
     #settings : bpy.props.PointerProperty(type=DimensionVariables)
 
     # align_matrix for the invoke
@@ -2586,10 +2586,10 @@ def StartLocationUpdate(self, context):
 # ### MENU append ###
 def Dimension_object_menu(self, context):
     bl_label = 'Dimension'
-    
+
     obj = context.object
     layout = self.layout
-    
+
     if 'Dimension' in obj.keys():
         props = layout.operator("curve.dimension", text="Change Dimension")
         props.Dimension_Change = True
@@ -2822,10 +2822,10 @@ def Dimension_object_menu(self, context):
 
 def Dimension_edit_menu(self, context):
     bl_label = 'Dimension'
-    
+
     obj = context.object
     layout = self.layout
-    
+
     vertex = []
     for i in obj.data.vertices :
         if i.select :
@@ -3034,7 +3034,7 @@ def unregister():
     bpy.types.VIEW3D_MT_edit_mesh_context_menu.remove(Dimension_edit_menu)
     bpy.types.VIEW3D_MT_object_context_menu.remove(Dimension_object_menu)
     bpy.types.VIEW3D_MT_curve_add.remove(Dimension_button)
-    
+
     from bpy.utils import unregister_class
     for cls in reversed(classes):
         unregister_class(cls)
diff --git a/add_mesh_clusters/__init__.py b/add_mesh_clusters/__init__.py
index fbf89510..3ecd64ae 100644
--- a/add_mesh_clusters/__init__.py
+++ b/add_mesh_clusters/__init__.py
@@ -302,12 +302,12 @@ def DEF_atom_draw_atoms(prop_element,
         color = (1.0,  0.81,  0.13, 1.0)
         radii = [1.34]
 
-    # First, we create a collection for the atoms, which includes the 
+    # First, we create a collection for the atoms, which includes the
     # representative ball and the mesh.
     coll_atom_name = "Cluster (" + coll_name + ")_" + name.lower()
     # Create the new collection and ...
     coll_atom = bpy.data.collections.new(coll_atom_name)
-    # ... link it to the collection, which contains all parts of the 
+    # ... link it to the collection, which contains all parts of the
     # element (ball and mesh).
     bpy.data.collections.new(coll_atom_name)
     bpy.context.scene.collection.children.link(coll_atom)
@@ -354,7 +354,7 @@ def DEF_atom_draw_atoms(prop_element,
         coll_past = coll_all[0]
     else:
         coll_past = bpy.context.scene.collection
-    
+
     # Put the atom into the new collection 'atom' and ...
     coll_atom.objects.link(ball)
     # ... unlink the atom from the other collection.
@@ -374,26 +374,26 @@ def DEF_menu_func(self, context):
     self.layout.operator(CLASS_ImportCluster.bl_idname, icon='PLUGIN')
 
 
-classes = (CLASS_ImportCluster, 
-           CLASS_PT_atom_cluster_panel, 
-           CLASS_atom_cluster_Properties, 
+classes = (CLASS_ImportCluster,
+           CLASS_PT_atom_cluster_panel,
+           CLASS_atom_cluster_Properties,
            CLASS_atom_cluster_load_button)
 
 
 def register():
     for cls in classes:
         bpy.utils.register_class(cls)
-        
+
     bpy.types.Scene.atom_cluster = bpy.props.PointerProperty(type=
                                                   CLASS_atom_cluster_Properties)
     bpy.types.VIEW3D_MT_mesh_add.append(DEF_menu_func)
-    
+
 
 def unregister():
     bpy.types.VIEW3D_MT_mesh_add.remove(DEF_menu_func)
-    
+
     del bpy.types.Scene.atom_cluster
-    
+
     for cls in reversed(classes):
         bpy.utils.unregister_class(cls)
 
diff --git a/exact_edit/xedit_free_rotate.py b/exact_edit/xedit_free_rotate.py
index 1acc490a..b80eb8fe 100644
--- a/exact_edit/xedit_free_rotate.py
+++ b/exact_edit/xedit_free_rotate.py
@@ -306,7 +306,7 @@ class ViewButton():
         #offs_2d = Vector((-self.wid / 2, 25))
         offs_2d = Vector((-self.wid / 2, 0))
         new2d = co2d + offs_2d
-        
+
         # co_bl == coordinate bottom left, co_tr == coordinate top right
         co_bl = new2d[0], new2d[1]
         co_tl = new2d[0], new2d[1] + self.hgt
@@ -1078,7 +1078,7 @@ def draw_callback_px(self, context):
             axis_pts = get_axis_line_co(pts2d[2], t2d, rwid, rhgt)
             if axis_pts is not None:
                 draw_line_2d(axis_pts[0], axis_pts[1], Colr.white)
-                
+
             #btn_co = pts2d[2] + Vector((0, 20))
             draw_line_2d(pts2d[0], pts2d[2], Colr.white)
             draw_line_2d(pts2d[1], pts2d[2], Colr.white)
diff --git a/exact_edit/xedit_set_meas.py b/exact_edit/xedit_set_meas.py
index 46d8c4b7..d2644477 100644
--- a/exact_edit/xedit_set_meas.py
+++ b/exact_edit/xedit_set_meas.py
@@ -401,7 +401,7 @@ class ViewButton():
         #offs_2d = Vector((-self.wid / 2, 25))
         offs_2d = Vector((-self.wid / 2, 0))
         new2d = co2d + offs_2d
-        
+
         # co_bl == coordinate bottom left, co_tr == coordinate top right
         co_bl = new2d[0], new2d[1]
         co_tl = new2d[0], new2d[1] + self.hgt
@@ -1272,7 +1272,7 @@ def do_rotate(self):
         o_mat = create_z_orient(norml)
 
         bpy.ops.transform.rotate(
-            value=RotDat.ang_diff_r, 
+            value=RotDat.ang_diff_r,
             orient_axis='Z',
             orient_type='LOCAL',
             #orient_type='GLOBAL',
@@ -1303,7 +1303,7 @@ def do_rotate(self):
 
     editmode_refresh()
 
-        
+
 # Uses axis_lock or piv_norm from RotDat to obtain rotation axis.
 # Then rotates selected objects or selected vertices around the
 # 3D cursor using RotDat's ang_diff_r radian value.
@@ -1930,7 +1930,7 @@ class XEDIT_OT_set_meas(bpy.types.Operator):
             if not popup_active:
                 process_popup_input(self)
                 set_help_text(self, "CLICK")
-  
+
         elif self.addon_mode == GET_0_OR_180:
             choose_0_or_180(RotDat.lock_pts[2], RotDat.rot_pt_pos,
                     RotDat.rot_pt_neg, RotDat.ang_diff_r, self.mouse_co)
diff --git a/io_import_sound_to_anim.py b/io_import_sound_to_anim.py
index 839f771b..29e5984b 100644
--- a/io_import_sound_to_anim.py
+++ b/io_import_sound_to_anim.py
@@ -67,7 +67,7 @@ def _Interna_Globals(BytesDadosTotProcess, context):
     bl_context = "object"
     bl_label = "Import Movement From Wav File"
     bl_options = {'DEFAULT_CLOSED'}"""
-    
+
 class VIEW3D_PT_SoundPanel(bpy.types.Panel):
     bl_idname = "IMPORTWAVTOOL_PT_tools"
     bl_space_type = "VIEW_3D"
@@ -76,7 +76,7 @@ class VIEW3D_PT_SoundPanel(bpy.types.Panel):
     bl_label = "Import Tool"
     bl_category = "Animate"
     bl_options = {'DEFAULT_CLOSED'}
-    
+
     def draw(self, context):
         layout = self.layout
 
@@ -189,7 +189,7 @@ class VIEW3D_PT_SoundPanel(bpy.types.Panel):
                 row=layout.row()
                 row.label(text='Optional Configurations:')
                 row=layout.row()
-                
+
                 row.prop(context.object.imp_sound_to_anim,"frames_per_second")
                 row=layout.row()
                 #coluna
@@ -564,7 +564,7 @@ class OBJECT_OT_Botao_Import(bpy.types.Operator):
             obi.iSumOptimizerP3=0
             obi.iSumImportFrames=0
             context.object.imp_sound_to_anim.timer_reset_func=False
-            
+
         #limita o loop se estiver no fim
         tot=len(array)-1
         if obi.RunFrom+loop > tot:
@@ -981,7 +981,7 @@ class OBJECT_OT_Botao_Go(bpy.types.Operator):
     RunFrom=0
     Wave_read=0
     MaxAudio=0
-        
+
     def SoundConv(File, DivSens, Sensibil, Resol, context, bAutoSense, bRemoveBeat, bUseBeat, bMoreSensible, \
                                                                             bLessSensible, AudioChannel, loop):
         obg= OBJECT_OT_Botao_Go
@@ -1534,8 +1534,8 @@ def register():
 
 def unregister():
     for cls in reversed(classes):
-        bpy.utils.unregister_class(cls)  
-    #bpy.types.VIEW3D_MT_mesh_add.remove(WavFileImport)  
+        bpy.utils.unregister_class(cls)
+    #bpy.types.VIEW3D_MT_mesh_add.remove(WavFileImport)
     bpy.types.TOPBAR_MT_file_import.remove(WavFileImport)
 
 
diff --git a/object_fracture_crack/__init__.py b/object_fracture_crack/__init__.py
index 135be2aa..63ec0d70 100644
--- a/object_fracture_crack/__init__.py
+++ b/object_fracture_crack/__init__.py
@@ -51,7 +51,7 @@ from bpy.props import (
 from bpy.types import (
         Panel,
         PropertyGroup,
-        )        
+        )
 
 
 class OBJECT_PT_FRACTURE_Panel(Panel):
@@ -70,10 +70,10 @@ class OBJECT_PT_FRACTURE_Panel(Panel):
         layout.label(text="Use Fracture It First")
         layout.operator("object.add_fracture_cell",
                     text="Fracture It")
-        layout.label(text="Use Crack It To Displace")					
+        layout.label(text="Use Crack It To Displace")
         layout.operator(operator.FRACTURE

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list