From 9c23e245432bb019dd47bfa0fcffd95638fd5ada Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 31 Oct 2018 11:50:49 +1100 Subject: [PATCH] Fix T57504: Scaling 3D cursor crashes --- source/blender/editors/transform/transform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 143c534d682..a8e061ee612 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -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)) {