Fix T57504: Scaling 3D cursor crashes

This commit is contained in:
Campbell Barton 2018-10-31 11:50:49 +11:00
parent c469c72405
commit 9c23e24543
Notes: blender-bot 2023-05-29 09:17:12 +02:00
Referenced by issue #57504, Blender 2.80 crash while dragging cursor and start scaling
Referenced by issue #56011, Crash dragging Cursor tool and hitting S (scale)
1 changed files with 2 additions and 1 deletions

View File

@ -3677,7 +3677,8 @@ static void ElementResize(TransInfo *t, TransDataContainer *tc, TransData *td, f
copy_v3_v3(center, tc->center_local);
}
if (td->ext) {
/* Size checked needed since the 3D cursor only uses rotation fields. */
if (td->ext && td->ext->size) {
float fsize[3];
if (t->flag & (T_OBJECT | T_TEXTURE | T_POSE)) {