[Bf-blender-cvs] [d49b86d] master: Fix T41201: Blender Crashes when UV Editing

Sergey Sharybin noreply at git.blender.org
Mon Jul 28 13:11:50 CEST 2014


Commit: d49b86d0f95117e29d107071b46dce9dbc4b2da8
Author: Sergey Sharybin
Date:   Mon Jul 28 17:10:33 2014 +0600
Branches: master
https://developer.blender.org/rBd49b86d0f95117e29d107071b46dce9dbc4b2da8

Fix T41201: Blender Crashes when UV Editing

Disable adding snapping point outside of 3D space for now,
visualization of the points is not implemented outside of
this space and silently adding them wouldn't really be a
good idea.

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

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 da9853d..2aba8b7 100644
--- a/source/blender/editors/transform/transform_snap.c
+++ b/source/blender/editors/transform/transform_snap.c
@@ -658,7 +658,8 @@ static void setSnappingCallback(TransInfo *t)
 
 void addSnapPoint(TransInfo *t)
 {
-	if (t->tsnap.status & POINT_INIT) {
+	/* Currently only 3D viewport works for snapping points. */
+	if (t->tsnap.status & POINT_INIT && t->spacetype == SPACE_VIEW3D) {
 		TransSnapPoint *p = MEM_callocN(sizeof(TransSnapPoint), "SnapPoint");
 
 		t->tsnap.selectedPoint = p;




More information about the Bf-blender-cvs mailing list