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>2013-06-13 12:54:36 +0400
committerClemens Barth <barth@root-1.de>2013-06-13 12:54:36 +0400
commit510bd9c6d95fe5fe670c8e39f79ddf75cac8b121 (patch)
tree60b9ae93f0aeaeab67994a36915bf7de43c3a307 /io_mesh_pdb/import_pdb.py
parent8a0e2f9d94f8a173f23867dbaf33f04da52f0fbb (diff)
Importing a PDB structure where the atoms are shown as mesh balls created an
error. This bug was fixed. Blendphys.
Diffstat (limited to 'io_mesh_pdb/import_pdb.py')
-rw-r--r--io_mesh_pdb/import_pdb.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py
index 37109cac..5146663d 100644
--- a/io_mesh_pdb/import_pdb.py
+++ b/io_mesh_pdb/import_pdb.py
@@ -621,13 +621,15 @@ def camera_light_source(use_camera,
bpy.context.scene.world.light_settings.ao_factor = 0.2
-# Function, which draws the atoms of one type (balls). this is one
+# Function, which draws the atoms of one type (balls). This is one
# dupliverts structure then.
# Return: the dupliverts structure
def draw_atoms_one_type(draw_all_atoms_type,
- Ball_type,
- Ball_radius_factor,
- object_center_vec):
+ Ball_type,
+ Ball_azimuth,
+ Ball_zenith,
+ Ball_radius_factor,
+ object_center_vec):
# Create first the vertices composed of the coordinates of all
# atoms of one type
@@ -1318,6 +1320,8 @@ def import_pdb(Ball_type,
atom_mesh = draw_atoms_one_type(draw_all_atoms_type,
Ball_type,
+ Ball_azimuth,
+ Ball_zenith,
Ball_radius_factor,
object_center_vec)
atom_object_list.append(atom_mesh)