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:
parent
93d0a2c224
commit
d49b86d0f9
Notes:
blender-bot
2023-02-14 10:17:44 +01:00
Referenced by issue #41201, Blender Crashes when UV Editing
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue