Skip to content
Snippets Groups Projects
Commit eefe93ee authored by Clemens Barth's avatar Clemens Barth
Browse files

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)
parent 6c87db25
No related branches found
No related tags found
No related merge requests found
...@@ -434,6 +434,9 @@ def separate_atoms(scn): ...@@ -434,6 +434,9 @@ def separate_atoms(scn):
coll.objects.link(obj_dupli) coll.objects.link(obj_dupli)
obj_dupli.location = location obj_dupli.location = location
obj_dupli.name = obj.name + "_sep" 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.ops.object.mode_set(mode='OBJECT', toggle=False)
bpy.context.view_layer.objects.active = mesh bpy.context.view_layer.objects.active = mesh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment