[Bf-extensions-cvs] [15f51177] master: Fix: some replacement objects (e.g., icospheres) other than balls can now be loaded again.
Clemens Barth
noreply at git.blender.org
Mon Mar 18 17:24:07 CET 2019
Commit: 15f51177efd128c85fb706bbc098a42c881ed69b
Author: Clemens Barth
Date: Mon Mar 18 17:22:45 2019 +0100
Branches: master
https://developer.blender.org/rBAC15f51177efd128c85fb706bbc098a42c881ed69b
Fix: some replacement objects (e.g., icospheres) other than balls can now be loaded again.
===================================================================
M io_atomblend_utilities/io_atomblend_utilities.py
===================================================================
diff --git a/io_atomblend_utilities/io_atomblend_utilities.py b/io_atomblend_utilities/io_atomblend_utilities.py
index be5e2563..3558e936 100644
--- a/io_atomblend_utilities/io_atomblend_utilities.py
+++ b/io_atomblend_utilities/io_atomblend_utilities.py
@@ -265,12 +265,12 @@ def choose_objects(action_type,
else:
if atom.type in {'SURFACE', 'MESH', 'META'}:
modify_objects(action_type,
- atom,
- radius_all,
- radius_pm,
- radius_type,
- radius_type_ionic,
- sticks_all)
+ atom,
+ radius_all,
+ radius_pm,
+ radius_type,
+ radius_type_ionic,
+ sticks_all)
# Modifying the radius of a selected atom or stick
@@ -319,7 +319,7 @@ def modify_objects(action_type,
('STICKS_CUPS' in atom.name.upper() or
'STICKS_CYLINDER' in atom.name.upper() or
'STICK_CYLINDER' in atom.name.upper())):
-
+
bpy.context.view_layer.objects.active = atom
bpy.ops.object.mode_set(mode='EDIT', toggle=False)
bm = bmesh.from_edit_mesh(atom.data)
@@ -531,7 +531,7 @@ def draw_obj(atom_shape, atom):
bpy.ops.mesh.primitive_uv_sphere_add(
segments=32,
ring_count=32,
- size=1,
+ radius=1,
view_align=False,
enter_editmode=False,
location=atom.location,
@@ -573,7 +573,7 @@ def draw_obj(atom_shape, atom):
index = {'5a':1,'5b':2,'5c':3,'5d':4,'5e':5}
bpy.ops.mesh.primitive_ico_sphere_add(
subdivisions=int(index[atom_shape]),
- size=1,
+ radius=1,
view_align=False,
enter_editmode=False,
location=atom.location,
More information about the Bf-extensions-cvs
mailing list