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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user