[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3160] trunk/py/scripts/addons/ io_mesh_pdb/__init__.py:

Clemens Barth barth at root-1.de
Thu Mar 22 16:55:32 CET 2012


Revision: 3160
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3160
Author:   blendphys
Date:     2012-03-22 15:55:26 +0000 (Thu, 22 Mar 2012)
Log Message:
-----------

Some code cleaning ...

Blendphys 

Modified Paths:
--------------
    trunk/py/scripts/addons/io_mesh_pdb/__init__.py

Modified: trunk/py/scripts/addons/io_mesh_pdb/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/__init__.py	2012-03-22 14:58:43 UTC (rev 3159)
+++ trunk/py/scripts/addons/io_mesh_pdb/__init__.py	2012-03-22 15:55:26 UTC (rev 3160)
@@ -69,10 +69,8 @@
             return False
         if ATOM_PDB_PANEL == "0" and import_pdb.ATOM_PDB_FILEPATH != "":
             return True
-        
         if ATOM_PDB_PANEL == "1":
             return True
-        
         if ATOM_PDB_PANEL == "2":
             return False
         
@@ -173,7 +171,6 @@
         col.operator( "atom_pdb.radius_sticks" )
 
         if bpy.context.mode == 'EDIT_MESH':
-
             row = layout.row()
             row.label(text="Separate atom")
             box = layout.box()
@@ -385,7 +382,6 @@
         new_atom.scale = scale
         new_atom.active_material = material
         new_atom.name = name + "_sep"
-
         # Switch back into the 'Edit mode' because we would like to seprate
         # other atoms may be (more convinient)
         new_atom.select = False
@@ -463,8 +459,7 @@
                 
         result = import_pdb.DEF_atom_pdb_radius_sticks(
                      scn.sticks_radius * 0.9,
-                     scn.radius_how,
-                     )
+                     scn.radius_how,)
                      
         if result == False:
             ATOM_PDB_ERROR = "No sticks => no changes"
@@ -513,11 +508,9 @@
     datafile_path = bpy.utils.user_resource('SCRIPTS', path='', create=False)
     if os.path.isdir(datafile_path) == False:
         bpy.utils.user_resource('SCRIPTS', path='', create=True)
-        
     datafile_path = os.path.join(datafile_path, "presets")
     if os.path.isdir(datafile_path) == False:
         os.mkdir(datafile_path)   
-        
     datafile = os.path.join(datafile_path, "io_mesh_pdb.pref")
     if os.path.isfile(datafile):
         datafile_fp = io.open(datafile, "r")



More information about the Bf-extensions-cvs mailing list