[Bf-blender-cvs] [c72b576aabb] blender2.8: Fix crash with snap and project to self.

Germano noreply at git.blender.org
Thu May 24 20:35:32 CEST 2018


Commit: c72b576aabbc538ae2a4ebb8712f23b96fdd397d
Author: Germano
Date:   Thu May 24 15:35:20 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBc72b576aabbc538ae2a4ebb8712f23b96fdd397d

Fix crash with snap and project to self.

Apparently the original `edit_btmesh` is being freed and the new one has to be referenced

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

M	source/blender/editors/transform/transform_snap_object.c

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

diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c
index db1a6cc4240..5817601e662 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -535,6 +535,10 @@ static bool raycastEditMesh(
 			return retval;
 		}
 	}
+	else {
+		/* COW hack: Update pointers */
+		treedata->em = em;
+	}
 
 	float imat[4][4];
 	float timat[3][3]; /* transpose inverse matrix for normals */



More information about the Bf-blender-cvs mailing list