Skip to content
Snippets Groups Projects
Commit 510bd9c6 authored by Clemens Barth's avatar Clemens Barth
Browse files

Importing a PDB structure where the atoms are shown as mesh balls created an
error. This bug was fixed. 
 
Blendphys.
parent 8a0e2f9d
No related branches found
No related tags found
No related merge requests found
...@@ -621,13 +621,15 @@ def camera_light_source(use_camera, ...@@ -621,13 +621,15 @@ def camera_light_source(use_camera,
bpy.context.scene.world.light_settings.ao_factor = 0.2 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. # dupliverts structure then.
# Return: the dupliverts structure # Return: the dupliverts structure
def draw_atoms_one_type(draw_all_atoms_type, def draw_atoms_one_type(draw_all_atoms_type,
Ball_type, Ball_type,
Ball_radius_factor, Ball_azimuth,
object_center_vec): Ball_zenith,
Ball_radius_factor,
object_center_vec):
# Create first the vertices composed of the coordinates of all # Create first the vertices composed of the coordinates of all
# atoms of one type # atoms of one type
...@@ -1318,6 +1320,8 @@ def import_pdb(Ball_type, ...@@ -1318,6 +1320,8 @@ def import_pdb(Ball_type,
atom_mesh = draw_atoms_one_type(draw_all_atoms_type, atom_mesh = draw_atoms_one_type(draw_all_atoms_type,
Ball_type, Ball_type,
Ball_azimuth,
Ball_zenith,
Ball_radius_factor, Ball_radius_factor,
object_center_vec) object_center_vec)
atom_object_list.append(atom_mesh) atom_object_list.append(atom_mesh)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment