Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2009-12-27 21:09:17 +0300
committerMartin Poirier <theeth@yahoo.com>2009-12-27 21:09:17 +0300
commit280a1d09f6cafa5bd9b117b5b39bf90b2d21bdf0 (patch)
tree80c723f366b6d67646ab700460008422e1ffe71d /source/blender/makesdna/DNA_view3d_types.h
parentd1f1583c7979369d3fcc91ff25aea1b8152dcce7 (diff)
Partial fix for [#20166] Snap to grid issues
Move gridview (the actual drawn grid size, including adaptation to zoom) to RegionView3D from View3D. This solves the transform increment bug but not the Snap Menu bug (context is not set to the correct rv3d when executing operator from menu).
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index 5326c17688d..1ea060c2eea 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -114,8 +114,9 @@ typedef struct RegionView3D {
/* last view */
float lviewquat[4];
short lpersp, lview;
- int pad3;
+ float gridview;
+
} RegionView3D;
/* 3D ViewPort Struct */
@@ -151,8 +152,10 @@ typedef struct View3D {
short pivot_last; /* pivot_last is for rotating around the last edited element */
- float lens, grid, gridview, padf, near, far;
- float ofs[3]; /* XXX depricated */
+ float lens, grid;
+ float gridview; /* XXX deprecated, now in RegionView3D */
+ float padf, near, far;
+ float ofs[3]; /* XXX deprecated */
float cursor[3];
short gridlines, pad4;