Minor bugfix in initTransInfo: SpaceImage used even if space type is SPACE_NODE.
authorLukas Toenne <lukas.toenne@googlemail.com>
Fri, 8 Apr 2011 12:02:30 +0000 (12:02 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Fri, 8 Apr 2011 12:02:30 +0000 (12:02 +0000)
source/blender/editors/transform/transform_generics.c

index 7358811a79c8aea8d570c246ec5d7a883aa88aff..a527472e50d139126434c1751d75ebe555b83410 100644 (file)
@@ -1008,7 +1008,7 @@ int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
                SpaceImage *sima = sa->spacedata.first;
                // XXX for now, get View2D  from the active region
                t->view = &ar->v2d;
-               t->around = sima->around;
+               t->around = (sima ? sima->around : 0);
        }
        else if(t->spacetype==SPACE_IPO) 
        {