Skip to content

Commit

Permalink
I removed all 'del()' commands. The reason is that, e.g., the separat…
Browse files Browse the repository at this point in the history
…ion of an atom object

from an atomic structure in the 'EDIT' mode has lead to a crash of Blender. With the
changes done, there is no crash of Blender anymore.
  • Loading branch information
karumbis committed Jan 14, 2022
1 parent d4674c9 commit e54b9d2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions io_mesh_atomic/utility_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ def separate_atoms(scn):

# Free memory
bm.free()
del(bm)

# Delete already the selected vertices
bpy.ops.mesh.delete(type='VERT')
Expand Down Expand Up @@ -668,7 +667,6 @@ def draw_obj(atom_shape, atom, new_material):
coll_child = get_collection_object(child)
coll_child.objects.unlink(child)
bpy.ops.object.delete()
del(child)

# Deselect everything
bpy.ops.object.select_all(action='DESELECT')
Expand All @@ -682,7 +680,6 @@ def draw_obj(atom_shape, atom, new_material):
coll_old_atom.objects.unlink(atom)
# Delete the old atom
bpy.ops.object.delete()
del(atom)

#if "_F2+_center" or "_F+_center" or "_F0_center" in coll_old_atom:
# print("Delete the collection")
Expand Down Expand Up @@ -982,7 +979,6 @@ def draw_obj_special(atom_shape, atom):
coll_atom.objects.unlink(atom)
# Delete the old atom
bpy.ops.object.delete()
del(atom)

return new_atom

Expand Down

0 comments on commit e54b9d2

Please sign in to comment.