Fix: crash when rotating the view in pose mode
authorInes Almeida <britalmeida@gmail.com>
Sun, 20 May 2018 15:44:50 +0000 (17:44 +0200)
committerInes Almeida <britalmeida@gmail.com>
Sun, 20 May 2018 15:44:50 +0000 (17:44 +0200)
source/blender/editors/transform/transform.c

index 405c621301743762c56e278bd9e39e2e9983b896..318e21bb7c93b73bec51b63a9187f6965c5c7bdc 100644 (file)
@@ -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 */