2.5: Image Editor
[blender-staging.git] / source / blender / editors / transform / transform_generics.c
index f4cb5afc3c2d4919bedb473a61c148fffd7b396f..e157d7f68f90997af03ecf510847998e166b8023 100644 (file)
@@ -754,9 +754,10 @@ int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
        }
        else if(t->spacetype==SPACE_IMAGE || t->spacetype==SPACE_NODE)
        {
+               SpaceImage *sima = sa->spacedata.first;
                // XXX for now, get View2D  from the active region
                t->view = &ar->v2d;
-               t->around = ar->v2d.around;
+               t->around = sima->around;
        }
        else
        {