Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-10-31 03:50:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-31 03:51:15 +0300
commit9c23e245432bb019dd47bfa0fcffd95638fd5ada (patch)
tree8ffe2e3513f8e8d1b793f9fa8dd6f130c80b0f44
parentc469c72405d97ea5eab85c36a1ace04a57b2c447 (diff)
Fix T57504: Scaling 3D cursor crashes
-rw-r--r--source/blender/editors/transform/transform.c3
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)) {