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:
authorGeoffrey Bantle <hairbat@yahoo.com>2006-04-03 23:02:22 +0400
committerGeoffrey Bantle <hairbat@yahoo.com>2006-04-03 23:02:22 +0400
commitcc8051eeadc09228fd5176dc145b0bc0caa2f89b (patch)
tree374ee3290094f75651749dc0b274722ec3daa34c /source/blender/makesdna
parente9a9caee4c05dd1421cdc59a1ed3b85dfd457a9d (diff)
-> Stored Selections in Mesh DNA
Stored selections now get saved to mesh library blocks as direct data. The idea that stored selections are 'erased' when leaving editmode and switching objects is pretty mysterious for the user. Note that currently the mselect array in a mesh is not written to file. Not sure whether to change this or not.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h5
-rw-r--r--source/blender/makesdna/DNA_meshdata_types.h8
2 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h
index e5496c895bc..6f477e963c6 100644
--- a/source/blender/makesdna/DNA_mesh_types.h
+++ b/source/blender/makesdna/DNA_mesh_types.h
@@ -79,11 +79,12 @@ typedef struct Mesh {
struct MCol *mcol;
struct MSticky *msticky;
struct Mesh *texcomesh;
-
+ struct MSelect *mselect;
+
struct OcInfo *oc; /* not written in file */
void *sumohandle;
- int totvert, totedge, totface;
+ int totvert, totedge, totface, totselect, pad2;
int texflag;
float loc[3];
diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h
index 834c206d8e0..691696f1c80 100644
--- a/source/blender/makesdna/DNA_meshdata_types.h
+++ b/source/blender/makesdna/DNA_meshdata_types.h
@@ -71,6 +71,10 @@ typedef struct MSticky {
float co[2];
} MSticky;
+typedef struct MSelect {
+ int index;
+ int type;
+} MSelect;
/* mvert->flag (1=SELECT) */
#define ME_SPHERETEST 2
#define ME_SPHERETEMP 4
@@ -111,3 +115,7 @@ typedef struct MSticky {
#define ME_FACE_STEPINDEX (1<<7)
#endif
+/* mselect->type */
+#define ME_VSEl 0
+#define ME_ESEl 1
+#define ME_FSEL 2