Fix T61945: Scaling with invalid snap distances
ApplySnapResize did not take into account invalid distances. Added check for this. Reviewed By: Campbell Barton Differential Revision: https://developer.blender.org/D4417
This commit is contained in:
@@ -870,7 +870,9 @@ static void ApplySnapResize(TransInfo *t, float vec[3])
|
||||
getSnapPoint(t, point);
|
||||
|
||||
float dist = ResizeBetween(t, t->tsnap.snapTarget, point);
|
||||
copy_v3_fl(vec, dist);
|
||||
if (dist != TRANSFORM_DIST_INVALID) {
|
||||
copy_v3_fl(vec, dist);
|
||||
}
|
||||
}
|
||||
|
||||
/********************** DISTANCE **************************/
|
||||
|
||||
Reference in New Issue
Block a user