diff options
author | Ton Roosendaal <ton@blender.org> | 2005-01-09 00:16:24 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-01-09 00:16:24 +0300 |
commit | 3c921cc8e88d56ba206797e6dd990451274603c6 (patch) | |
tree | 359e66b006f20ecd49ed1f2bb3fb3ff06cd6137b /source/blender/blenkernel/BKE_global.h | |
parent | 9adbe1ec0e2888cb6c04a3cb0789ba1b7e7bf199 (diff) |
The "teac" (measurement info) patch from Campbell Barton
Cleaned code somewhat (half the size!) and applied some changes:
- made it compatible with selection flags for new mesh editing (edge/face)
- renamed 'face angles' to 'edge angles' and made it display angles for
2 selected edges too
- removed the confusing convention that always drawed the info if one
of the vertices of edge/face/angle was selected. now it only displays on
minimum of 1 full edge or face selected.
- made it react to "zbuf occluded selection" option (for zbuffered text)
- made it also colorize text for white theme color (TH_TEXT)
On larger meshes this info still draws very confusing. The idea of displaying
the info on 1 vertex selected was probably to show values while grabbing,
although that didnt really work for angles. One idea could be, for transform,
that it draws all lenghts/angles/areas that get changed during transform
All in all, still useful addition tho!
Diffstat (limited to 'source/blender/blenkernel/BKE_global.h')
-rw-r--r-- | source/blender/blenkernel/BKE_global.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_global.h b/source/blender/blenkernel/BKE_global.h index cf642932447..395980eb860 100644 --- a/source/blender/blenkernel/BKE_global.h +++ b/source/blender/blenkernel/BKE_global.h @@ -174,6 +174,11 @@ typedef struct Global { #define G_DRAWSEAMS (1 << 20) #define G_HIDDENEDGES (1 << 21) +/* Measurement info Drawing */ +#define G_DRAW_EDGELEN (1 << 22) +#define G_DRAW_FACEAREA (1 << 23) +#define G_DRAW_EDGEANG (1 << 24) + /* G.fileflags */ #define G_AUTOPACK_BIT 0 |