Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Barth <barth@root-1.de>2019-03-16 22:46:36 +0300
committerClemens Barth <barth@root-1.de>2019-03-16 22:46:36 +0300
commit72c03e3efe46eda3d37e9487156e53620b9c9afa (patch)
tree7772b883e45fe4aadd23f452ab6b08d5641b5812
parent3e09faa3523ada8eaa1a6b3ad5e4bf606f03225c (diff)
Cosmetics: some small changes ... .
-rw-r--r--io_mesh_pdb/import_pdb.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py
index b4efeb61..5c3f2775 100644
--- a/io_mesh_pdb/import_pdb.py
+++ b/io_mesh_pdb/import_pdb.py
@@ -292,6 +292,7 @@ def read_pdb_file(filepath_pdb, radiustype):
break
if FOUND == False:
short_name = short_name2
+
# ....................................................... to here.
# Go through all elements and find the element of the current atom.
@@ -380,7 +381,7 @@ def read_pdb_file_sticks(filepath_pdb, use_sticks_bonds, all_atoms):
# ... which is broken here (EOF) ...
if line == "":
break
- # ... or here, when no 'CONNECT' appears anymore.
+ # ... or here, when no 'CONECT' appears anymore.
if "CONECT" not in line:
break
@@ -426,7 +427,7 @@ def read_pdb_file_sticks(filepath_pdb, use_sticks_bonds, all_atoms):
if number == 2 or number == 3:
basis_list = list(set(atom_list[1:]))
-
+
if len(basis_list) > 1:
basis1 = (all_atoms[atom1-1].location
- all_atoms[basis_list[0]-1].location)
@@ -443,6 +444,7 @@ def read_pdb_file_sticks(filepath_pdb, use_sticks_bonds, all_atoms):
- all_atoms[atom2-1].location)
dist_n = Vector((dist_n[1],-dist_n[0],0))
dist_n = dist_n / dist_n.length
+
elif number > 3:
number = 1
dist_n = None
@@ -579,8 +581,6 @@ def camera_light_source(use_camera,
# 4 is the size of the matrix.
camera.rotation_euler = Matrix.Rotation(angle, 4, axis_vec).to_euler()
- print(camera.rotation_euler)
-
# Rotate the camera around its axis by 90° such that we have a nice
# camera position and view onto the object.
bpy.ops.object.select_all(action='DESELECT')
@@ -722,7 +722,6 @@ def draw_sticks_dupliverts(all_atoms,
continue
sticks_list = []
for stick in all_sticks:
-
for repeat in range(stick.number):
atom1 = copy(all_atoms[stick.atom1-1].location)-center
@@ -1009,7 +1008,6 @@ def draw_sticks_skin(all_atoms,
snap_point=(0, 0, 0),
snap_align=False,
snap_normal=(0, 0, 0),
- texture_space=False,
release_confirm=False)
# Back to the OBJECT mode.
bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
@@ -1228,7 +1226,6 @@ def import_pdb(Ball_type,
all_sticks = read_pdb_file_sticks(filepath_pdb,
use_sticks_bonds,
all_atoms)
-
#
# So far, all atoms, sticks and materials have been registered.
#