[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3936] contrib/py/scripts/addons/ io_atomblend_utilities/__init__.py: Cosmetics

Clemens Barth barth at root-1.de
Thu Nov 8 00:40:58 CET 2012


Revision: 3936
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3936
Author:   blendphys
Date:     2012-11-07 23:40:55 +0000 (Wed, 07 Nov 2012)
Log Message:
-----------
Cosmetics

Blendphys

Modified Paths:
--------------
    contrib/py/scripts/addons/io_atomblend_utilities/__init__.py

Modified: contrib/py/scripts/addons/io_atomblend_utilities/__init__.py
===================================================================
--- contrib/py/scripts/addons/io_atomblend_utilities/__init__.py	2012-11-07 23:30:06 UTC (rev 3935)
+++ contrib/py/scripts/addons/io_atomblend_utilities/__init__.py	2012-11-07 23:40:55 UTC (rev 3936)
@@ -24,7 +24,7 @@
 #
 #  Start of project              : 2011-12-01 by Clemens Barth
 #  First publication in Blender  : 2012-11-03
-#  Last modified                 : 2012-11-03
+#  Last modified                 : 2012-11-08
 #
 #  Acknowledgements 
 #  ================
@@ -211,7 +211,8 @@
 class CLASS_atom_blend_separate_atom(Operator):
     bl_idname = "atom_blend.separate_atom"
     bl_label = "Separate atoms"
-    bl_description = "Separate atoms you have selected. You have to be in the 'Edit Mode'"
+    bl_description = ("Separate atoms you have selected. "
+                      "You have to be in the 'Edit Mode'")
 
     def execute(self, context):
         scn = bpy.context.scene.atom_blend[0]
@@ -306,12 +307,12 @@
         dist = io_atomblend_utilities.DEF_atom_blend_distance()
 
         if dist != "N.A.":
-           # The string length is cut, 3 digits after the first 3 digits
-           # after the '.'. Append also "Angstrom".
-           # Remember: 1 Angstrom = 10^(-10) m
-           pos    = str.find(dist, ".")
-           dist   = dist[:pos+4]
-           dist   = dist + " A"
+            # The string length is cut, 3 digits after the first 3 digits
+            # after the '.'. Append also "Angstrom".
+            # Remember: 1 Angstrom = 10^(-10) m
+            pos    = str.find(dist, ".")
+            dist   = dist[:pos+4]
+            dist   = dist + " A"
 
         # Put the distance into the string of the output field.
         scn.distance = dist
@@ -353,7 +354,8 @@
 def register():
     io_atomblend_utilities.DEF_atom_blend_read_elements()  
     bpy.utils.register_module(__name__)
-    bpy.types.Scene.atom_blend = bpy.props.CollectionProperty(type=CLASS_atom_blend_Properties)
+    bpy.types.Scene.atom_blend = bpy.props.CollectionProperty(type=
+                                                   CLASS_atom_blend_Properties)
     bpy.context.scene.atom_blend.add()
 
 



More information about the Bf-extensions-cvs mailing list