Merge branch 'blender-v2.93-release'
This commit is contained in:
commit
6879868814
|
@ -2258,16 +2258,11 @@ static short snapMesh(SnapObjectContext *sctx,
|
|||
int *r_index)
|
||||
{
|
||||
BLI_assert(snapdata->snap_to_flag != SCE_SNAP_MODE_FACE);
|
||||
|
||||
if ((snapdata->snap_to_flag & ~SCE_SNAP_MODE_FACE) == SCE_SNAP_MODE_VERTEX) {
|
||||
if (me->totvert == 0) {
|
||||
return 0;
|
||||
}
|
||||
if (me->totvert == 0) {
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
if (me->totedge == 0) {
|
||||
return 0;
|
||||
}
|
||||
else if (me->totedge == 0 && !(snapdata->snap_to_flag & SCE_SNAP_MODE_VERTEX)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
float lpmat[4][4];
|
||||
|
|
Loading…
Reference in New Issue