diff options
author | Clemens Barth <barth@root-1.de> | 2019-03-30 20:35:32 +0300 |
---|---|---|
committer | Clemens Barth <barth@root-1.de> | 2019-03-30 20:35:32 +0300 |
commit | eefe93ee444338c610b8f5b724aebdb5a81c836a (patch) | |
tree | bc144019e7c0e9e87df7241328f011e5439b8f4c /io_mesh_atomic | |
parent | 6c87db255114aa97bc1aa105a439bfd7b11b61e6 (diff) |
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)
Diffstat (limited to 'io_mesh_atomic')
-rw-r--r-- | io_mesh_atomic/utility_panel.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |