there wasn't a good way to know if a RegionView3D was perspective or not (without...
[blender-staging.git] / source / blender / makesdna / DNA_view3d_types.h
index 60fa48d9717e7f2fac74b927fbf2e32ba6c72e58..f4b4ef37ad997b336717a467dde5b9cabda2facc 100644 (file)
@@ -96,10 +96,13 @@ typedef struct RegionView3D {
        float zfac;                                     /* initgrabz() result */
        float camdx, camdy;                     /* camera view offsets, 1.0 = viewplane moves entire width/height */
        float pixsize;                          /* runtime only */
-       float ofs[3];                           /* view center & orbit pivot, negative of worldspace location */
+       float ofs[3];                           /* view center & orbit pivot, negative of worldspace location,
+                                                                * also matches -viewinv[3][0:3] in ortho mode.*/
        short camzoom;
        short twdrawflag;
-       int pad;
+       char is_persp;                          /* check if persp/ortho view, since 'persp' cant be used for this since
+                                                                * it can have cameras assigned as well. (only set in setwinmatrixview3d) */
+       char pad[3];
        
        short rflag, viewlock;
        short persp;