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)
This commit is contained in:
parent
6c87db2551
commit
eefe93ee44
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue