diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-03-29 20:43:39 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-03-29 20:43:39 +0400 |
commit | e229722d5b20c0603f0b0cf0e559a43b4c5ec546 (patch) | |
tree | da5a3b7ca09e989aa9246f5172ef7135297659a5 /source/blender/makesdna/DNA_mesh_types.h | |
parent | da0a55d2b41d563385679d9beb12c26eaf7f1f63 (diff) |
- added Mesh->derived and Mesh->decimated DerivedMesh pointers
- removed DL_MESH displist type!!!! Now store a DerivedMesh directly.
- May still be some issues left having to do with releasing this
at the right time (old code just splashed free_displist all
over the place).
Diffstat (limited to 'source/blender/makesdna/DNA_mesh_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_mesh_types.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index 79bf76618a6..796a06a21e6 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -35,6 +35,8 @@ #include "DNA_listBase.h" #include "DNA_ID.h" +struct DerivedMesh; +struct DispListMesh; struct Ipo; struct Key; struct Material; @@ -77,6 +79,11 @@ typedef struct Mesh { struct Mesh *texcomesh; float *orco; + /* not written in file, caches derived mesh */ + struct DerivedMesh *derived; + /* hacky place to store temporary decimated mesh */ + struct DispListMesh *decimated; + struct OcInfo *oc; /* not written in file */ void *sumohandle; @@ -87,14 +94,13 @@ typedef struct Mesh { float size[3]; float rot[3]; + float cubemapsize, pad; + short smoothresh, flag; - short subdiv, subdivr, subdivdone; + short subdiv, subdivr; short totcol; short subsurftype; - short reserved1; /* Padding */ - - float cubemapsize; } Mesh; |