diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-31 03:50:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-31 03:51:15 +0300 |
commit | 9c23e245432bb019dd47bfa0fcffd95638fd5ada (patch) | |
tree | 8ffe2e3513f8e8d1b793f9fa8dd6f130c80b0f44 /source/blender/editors/transform | |
parent | c469c72405d97ea5eab85c36a1ace04a57b2c447 (diff) |
Fix T57504: Scaling 3D cursor crashes
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)) { |