[Bf-extensions-cvs] [c28e6f83] master: Code cleaning: removing unimportant code

Clemens Barth noreply at git.blender.org
Sun Mar 17 20:21:56 CET 2019


Commit: c28e6f83cdef4ae203f57af862f84a39948b5e5f
Author: Clemens Barth
Date:   Sun Mar 17 20:21:26 2019 +0100
Branches: master
https://developer.blender.org/rBAc28e6f83cdef4ae203f57af862f84a39948b5e5f

Code cleaning: removing unimportant code

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

M	io_mesh_pdb/export_pdb.py

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

diff --git a/io_mesh_pdb/export_pdb.py b/io_mesh_pdb/export_pdb.py
index 1f765352..cf9bf501 100644
--- a/io_mesh_pdb/export_pdb.py
+++ b/io_mesh_pdb/export_pdb.py
@@ -30,7 +30,6 @@ class AtomPropExport(object):
 def export_pdb(obj_type, filepath_pdb):
 
     list_atoms = []
-    i = 0
     for obj in bpy.context.selected_objects:
 
         if "STICK" in obj.name.upper():
@@ -62,8 +61,6 @@ def export_pdb(obj_type, filepath_pdb):
                 location = obj.location
                 list_atoms.append(AtomPropExport(name, location))
 
-        i = i+1
-
     pdb_file_p = open(filepath_pdb, "w")
     pdb_file_p.write("REMARK This pdb file has been created with Blender "
                      "and the addon Atomic Blender - PDB\n"



More information about the Bf-extensions-cvs mailing list