When increasing the size of the atoms (e.g., by using the buttons 'Bigger ...'
authorClemens Barth <barth@root-1.de>
Wed, 16 Jan 2013 18:14:27 +0000 (18:14 +0000)
committerClemens Barth <barth@root-1.de>
Wed, 16 Jan 2013 18:14:27 +0000 (18:14 +0000)
and 'Smaller ...') of a selected atomic structure with sticks (dupliverts
structure), the size of sticks is changed, too. However, it should not change.
This bug was removed.

Blendphys.

io_atomblend_utilities/io_atomblend_utilities.py

index 277338e4c776dd4dbe0c65f84fdbfa81d0f8c067..b4bc6ad5b817e4e9f8ddde131c189438a35056ff 100644 (file)
@@ -228,7 +228,8 @@ def choose_objects(how,
         for obj in change_objects:
             if len(obj.children) != 0:
                 if obj.children[0].type in {'SURFACE', 'MESH', 'META'}:
-                    modify_objects(how, 
+                    if "Stick" not in obj.name:    
+                        modify_objects(how, 
                                    obj.children[0],
                                    radius_all, 
                                    radius_pm, 
@@ -236,7 +237,8 @@ def choose_objects(how,
                                    radius_type_ionic)
             else:
                 if obj.type in {'SURFACE', 'MESH', 'META'}:
-                    modify_objects(how, 
+                    if "Stick" not in obj.name:
+                        modify_objects(how, 
                                    obj,  
                                    radius_all, 
                                    radius_pm, 
@@ -246,7 +248,8 @@ def choose_objects(how,
         for obj in bpy.context.selected_objects:
             if len(obj.children) != 0:
                 if obj.children[0].type in {'SURFACE', 'MESH', 'META'}:
-                    modify_objects(how, 
+                    if "Stick" not in obj.name:
+                        modify_objects(how, 
                                    obj.children[0],
                                    radius_all, 
                                    radius_pm, 
@@ -254,7 +257,8 @@ def choose_objects(how,
                                    radius_type_ionic)
             else:
                 if obj.type in {'SURFACE', 'MESH', 'META'}:
-                    modify_objects(how, 
+                    if "Stick" not in obj.name:
+                        modify_objects(how, 
                                    obj,
                                    radius_all, 
                                    radius_pm,