[Bf-extensions-cvs] [eefe93ee] master: Fix: a separated atom from a dupliverts structure was still hidden (not visible)

Clemens Barth noreply at git.blender.org
Sat Mar 30 18:40:22 CET 2019


Commit: eefe93ee444338c610b8f5b724aebdb5a81c836a
Author: Clemens Barth
Date:   Sat Mar 30 18:35:32 2019 +0100
Branches: master
https://developer.blender.org/rBAeefe93ee444338c610b8f5b724aebdb5a81c836a

Fix: a separated atom from a dupliverts structure was still hidden (not visible)

When separating an atom (in the form of, e.g., a sphere) from a dupliverts structure,
where the representative object (e.g., a sphere) is always hidden (not visible), the
separated atom object was still hidden (not visible). Fix: in any case, the 'hide_set'
option of an object is put onto: hide_set(False)

===================================================================

M	io_mesh_atomic/utility_panel.py

===================================================================

diff --git a/io_mesh_atomic/utility_panel.py b/io_mesh_atomic/utility_panel.py
index 5e85c0c8..98dbdba5 100644
--- a/io_mesh_atomic/utility_panel.py
+++ b/io_mesh_atomic/utility_panel.py
@@ -434,6 +434,9 @@ def separate_atoms(scn):
         coll.objects.link(obj_dupli)
         obj_dupli.location = location
         obj_dupli.name = obj.name + "_sep"
+        # Do not hide the object!
+        obj_dupli.hide_set(False)
+            
 
     bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
     bpy.context.view_layer.objects.active = mesh



More information about the Bf-extensions-cvs mailing list