diff options
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 8c97dfd2e17..eb6308d1c41 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -1421,8 +1421,8 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve } #endif - setTransformViewMatrices(t); setTransformViewAspect(t, t->aspect); + setTransformViewMatrices(t); initNumInput(&t->num); } @@ -1582,6 +1582,8 @@ void restoreTransObjects(TransInfo *t) void calculateCenter2D(TransInfo *t) { + BLI_assert(!is_zero_v3(t->aspect)); + if (t->flag & (T_EDIT | T_POSE)) { Object *ob = t->obedit ? t->obedit : t->poseobj; float vec[3]; |