[Bf-extensions-cvs] [e54b9d2a] master: I removed all 'del()' commands. The reason is that, e.g., the separation 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.

Clemens Barth noreply at git.blender.org
Fri Jan 14 19:23:43 CET 2022


Commit: e54b9d2a4d81fa87c041f85c04e8860f74896d62
Author: Clemens Barth
Date:   Fri Jan 14 19:21:12 2022 +0100
Branches: master
https://developer.blender.org/rBAe54b9d2a4d81fa87c041f85c04e8860f74896d62

I removed all 'del()' commands. The reason is that, e.g., the separation 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.

===================================================================

M	io_mesh_atomic/utility_panel.py

===================================================================

diff --git a/io_mesh_atomic/utility_panel.py b/io_mesh_atomic/utility_panel.py
index f41b8408..1b5ea235 100644
--- a/io_mesh_atomic/utility_panel.py
+++ b/io_mesh_atomic/utility_panel.py
@@ -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')
@@ -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')
@@ -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")
@@ -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



More information about the Bf-extensions-cvs mailing list