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.
This commit is contained in:
Sergey Sharybin 2014-07-28 17:10:33 +06:00
parent 93d0a2c224
commit d49b86d0f9
Notes: blender-bot 2023-02-14 10:17:44 +01:00
Referenced by issue #41201, Blender Crashes when UV Editing
1 changed files with 2 additions and 1 deletions

View File

@ -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;