[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4574] trunk/py/scripts/addons/ io_mesh_pdb/import_pdb.py:
Clemens Barth
barth at root-1.de
Thu Jun 13 10:54:37 CEST 2013
Revision: 4574
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4574
Author: blendphys
Date: 2013-06-13 08:54:36 +0000 (Thu, 13 Jun 2013)
Log Message:
-----------
Importing a PDB structure where the atoms are shown as mesh balls created an
error. This bug was fixed.
Blendphys.
Modified Paths:
--------------
trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py
Modified: trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py 2013-06-13 07:49:59 UTC (rev 4573)
+++ trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py 2013-06-13 08:54:36 UTC (rev 4574)
@@ -621,13 +621,15 @@
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 @@
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)
More information about the Bf-extensions-cvs
mailing list