Fix T52414: Blender 2.79 crash on object duplication via menu.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 16 Aug 2017 08:49:02 +0000 (10:49 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 16 Aug 2017 08:52:49 +0000 (10:52 +0200)
Caused by own recent changes in handling of verts/edges/etc. arrays storage
for raycasting (rBe324172d9ca6690e8).

Issue was actually even weirder - there is absolutely no reason at all to
release DM here, those finaldm are stored in Object or EditMesh structs and
handled by general update system, other code shall never try to release them!

source/blender/editors/transform/transform_snap_object.c

index fff92a8385a31d1344aa8ba3d105ea31fcb465f4..867f04563c62629a98f84039d31e21bf541d7e72 100644 (file)
@@ -744,8 +744,6 @@ static bool raycastObj(
                                ray_start, ray_dir,
                                ob, dm, obmat, ob_index,
                                ray_depth, r_loc, r_no, r_index, r_hit_list);
-
-                       dm->release(dm);
                }
        }