[Bf-blender-cvs] [ee8dafe] master: Fix crash on edit mode with multi-align project

Antony Riakiotakis noreply at git.blender.org
Fri Aug 8 19:35:18 CEST 2014


Commit: ee8dafe462312c4777ecce6f42be10ba908da4f8
Author: Antony Riakiotakis
Date:   Fri Aug 8 19:35:09 2014 +0200
Branches: master
https://developer.blender.org/rBee8dafe462312c4777ecce6f42be10ba908da4f8

Fix crash on edit mode with multi-align project

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

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

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

diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c
index 307f30f..abef2c9 100644
--- a/source/blender/editors/transform/transform_snap.c
+++ b/source/blender/editors/transform/transform_snap.c
@@ -338,7 +338,7 @@ void applyProject(TransInfo *t)
 
 					add_v3_v3(td->loc, tvec);
 
-					if (t->tsnap.align) {
+					if (t->tsnap.align && (t->flag & T_OBJECT)) {
 						/* handle alignment as well */
 						const float *original_normal;
 						float axis[3];




More information about the Bf-blender-cvs mailing list