From eefe93ee444338c610b8f5b724aebdb5a81c836a Mon Sep 17 00:00:00 2001
From: Clemens Barth <barth@root-1.de>
Date: Sat, 30 Mar 2019 18:35:32 +0100
Subject: [PATCH] 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)
---
 io_mesh_atomic/utility_panel.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/io_mesh_atomic/utility_panel.py b/io_mesh_atomic/utility_panel.py
index 5e85c0c8c..98dbdba5e 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
-- 
GitLab