diff options
author | Ines Almeida <britalmeida@gmail.com> | 2018-05-20 18:44:50 +0300 |
---|---|---|
committer | Ines Almeida <britalmeida@gmail.com> | 2018-05-20 18:44:50 +0300 |
commit | 4308602d6a6f9890f6145cacff681e3c3b91815d (patch) | |
tree | 5c33b3be7bea08a94ca6f6dac2672c299e9753ae /source/blender/editors/transform/transform.c | |
parent | 8cb6ede2bf78ae711077e3742fdb9b72e79a3b08 (diff) |
Fix: crash when rotating the view in pose mode
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r-- | source/blender/editors/transform/transform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 405c6213017..318e21bb7c9 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -1563,6 +1563,8 @@ bool calculateTransformCenter(bContext *C, int centerMode, float cent3d[3], floa TransInfo *t = MEM_callocN(sizeof(TransInfo), "TransInfo data"); bool success; + t->context = C; + t->state = TRANS_RUNNING; /* avoid calculating PET */ |