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:
authorCampbell Barton <ideasman42@gmail.com>2018-05-02 16:47:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-02 16:48:17 +0300
commit9e477bdf63dc21d3ae5845bed303abb5a2b958e6 (patch)
tree26916d59361fea297c38e087985ac807cd4ad397 /source/blender/makesdna/DNA_mesh_types.h
parent5659d8bc0aa334aee20f29548e048f3002f1cff6 (diff)
Mesh: move runtime members to own struct
Diffstat (limited to 'source/blender/makesdna/DNA_mesh_types.h')
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h
index e8790a86fc5..91477578bf7 100644
--- a/source/blender/makesdna/DNA_mesh_types.h
+++ b/source/blender/makesdna/DNA_mesh_types.h
@@ -65,6 +65,12 @@ typedef struct EditMeshData {
const float (*polyCos)[3];
} EditMeshData;
+/* not saved in file! */
+typedef struct MeshRuntime {
+ struct EditMeshData *edit_data;
+ void *batch_cache;
+} MeshRuntime;
+
typedef struct Mesh {
ID id;
struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */
@@ -100,7 +106,6 @@ typedef struct Mesh {
/* When the object is available, the preferred access method is: BKE_editmesh_from_object(ob) */
struct BMEditMesh *edit_btmesh; /* not saved in file! */
- struct EditMeshData *emd; /* not saved in file! */
struct CustomData vdata, edata, fdata;
@@ -140,7 +145,8 @@ typedef struct Mesh {
short totcol;
struct Multires *mr DNA_DEPRECATED; /* deprecated multiresolution modeling data, only keep for loading old files */
- void *batch_cache;
+
+ MeshRuntime runtime;
} Mesh;
/* deprecated by MTFace, only here for file reading */