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:
authorTon Roosendaal <ton@blender.org>2009-01-31 16:30:56 +0300
committerTon Roosendaal <ton@blender.org>2009-01-31 16:30:56 +0300
commit86a2a0f6947feab469a108eb7eb875fa5637d036 (patch)
treeff033132556d35991a488e6dc98807fa5b06b625 /source/blender/makesdna/DNA_mesh_types.h
parent607a56cb7a0e5a7fef2214d60a723dd67e8209ab (diff)
2.5
Edit Mesh: - Added back "Edge Shortest Path select" It now also does regular selection, more fun! It's mapped to CTRL+click now, and makes or clears selections between current and previously activated edge. Seam/Sharp/etc marking is a toolsetting mode still. These options cannot become properties easily, because the tool uses the properties of selected edge to clear... - Removed a whole bunch of G.f flags, related to mesh drawing. It's all now local in me->drawflags. Here's the list of removed old globals: G_DRAWEDGES G_DRAWFACES G_DRAWNORMALS G_DRAW_VNORMALS G_ALLEDGES G_HIDDENEDGES G_DRAWCREASES G_DRAWSEAMS G_DRAWSHARP G_DRAWBWEIGHTS G_DRAW_EDGELEN G_DRAW_FACEAREA G_DRAW_EDGEANG
Diffstat (limited to 'source/blender/makesdna/DNA_mesh_types.h')
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h44
1 files changed, 42 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h
index 7da057efdb1..3ecfe416c79 100644
--- a/source/blender/makesdna/DNA_mesh_types.h
+++ b/source/blender/makesdna/DNA_mesh_types.h
@@ -89,8 +89,9 @@ typedef struct Mesh {
float size[3];
float rot[3];
- float cubemapsize, pad;
-
+ float cubemapsize;
+
+ int drawflag;
short smoothresh, flag;
short subdiv, subdivr;
@@ -126,6 +127,45 @@ typedef struct TFace {
#define ME_SUBSURF 128
#define ME_OPT_EDGES 256
+/* me->drawflag, int */
+#define ME_DRAWEDGES (1 << 0)
+#define ME_DRAWFACES (1 << 1)
+#define ME_DRAWNORMALS (1 << 2)
+#define ME_DRAW_VNORMALS (1 << 3)
+
+#define ME_ALLEDGES (1 << 4)
+#define ME_HIDDENEDGES (1 << 5)
+
+#define ME_DRAWCREASES (1 << 6)
+#define ME_DRAWSEAMS (1 << 7)
+#define ME_DRAWSHARP (1 << 8)
+#define ME_DRAWBWEIGHTS (1 << 8)
+
+#define ME_DRAW_EDGELEN (1 << 10)
+#define ME_DRAW_FACEAREA (1 << 11)
+#define ME_DRAW_EDGEANG (1 << 12)
+
+/* old global flags:
+#define G_DRAWEDGES (1 << 18)
+#define G_DRAWFACES (1 << 7)
+#define G_DRAWNORMALS (1 << 6)
+#define G_DRAW_VNORMALS (1 << 14)
+
+#define G_ALLEDGES (1 << 11)
+#define G_HIDDENEDGES (1 << 21)
+
+#define G_DRAWCREASES (1 << 19)
+#define G_DRAWSEAMS (1 << 20)
+#define G_DRAWSHARP (1 << 28)
+#define G_DRAWBWEIGHTS (1 << 31)
+
+#define G_DRAW_EDGELEN (1 << 22)
+#define G_DRAW_FACEAREA (1 << 23)
+#define G_DRAW_EDGEANG (1 << 24)
+*/
+
+
+
/* Subsurf Type */
#define ME_CC_SUBSURF 0
#define ME_SIMPLE_SUBSURF 1