diff options
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 5bdd64dacb9..ad560152d5f 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -1150,7 +1150,7 @@ static void calculateZfac(TransInfo *t) SpaceImage *sima = t->area->spacedata.first; t->zfac = 1.0f / sima->zoom; } - else { + else if (t->region) { View2D *v2d = &t->region->v2d; /* Get zoom fac the same way as in * `ui_view2d_curRect_validate_resize` - better keep in sync! */ |