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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-01-01 01:09:26 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-01-01 01:09:26 +0400
commitcc3adc2202ce0208b1c95bc3fe3f0290b3b511f9 (patch)
tree503d6bc4376b27a6efe73739609e9bbb1f1188cb /source/blender/makesdna/DNA_mesh_types.h
parent0896a227232f741b6028219a208ae60e78515406 (diff)
parentb5595298d36a5023cc33ed41463fd6c032f2ec7b (diff)
Merged changes in the trunk up to revision 43038.
Conflicts resolved: source/blender/makesdna/DNA_material_types.h source/blenderplayer/bad_level_call_stubs/stubs.c
Diffstat (limited to 'source/blender/makesdna/DNA_mesh_types.h')
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h39
1 files changed, 35 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h
index 8db24a91d41..a68cac301d2 100644
--- a/source/blender/makesdna/DNA_mesh_types.h
+++ b/source/blender/makesdna/DNA_mesh_types.h
@@ -24,18 +24,21 @@
*
* ***** END GPL LICENSE BLOCK *****
*/
-#ifndef DNA_MESH_TYPES_H
-#define DNA_MESH_TYPES_H
/** \file DNA_mesh_types.h
* \ingroup DNA
*/
+#ifndef DNA_MESH_TYPES_H
+#define DNA_MESH_TYPES_H
+
#include "DNA_defs.h"
#include "DNA_listBase.h"
#include "DNA_ID.h"
#include "DNA_customdata_types.h"
+#include "DNA_defs.h" /* USE_BMESH_FORWARD_COMPAT */
+
struct DerivedMesh;
struct Ipo;
struct Key;
@@ -47,6 +50,11 @@ struct MCol;
struct MSticky;
struct Mesh;
struct OcInfo;
+struct MPoly;
+struct MTexPoly;
+struct MLoop;
+struct MLoopUV;
+struct MLoopCol;
struct Multires;
struct EditMesh;
struct AnimData;
@@ -61,6 +69,17 @@ typedef struct Mesh {
struct Key *key;
struct Material **mat;
+/*#ifdef USE_BMESH_FORWARD_COMPAT*/ /* XXX - ifdefs dont work here! */
+/* BMESH ONLY */
+ /*new face structures*/
+ struct MPoly *mpoly;
+ struct MTexPoly *mtpoly;
+ struct MLoop *mloop;
+ struct MLoopUV *mloopuv;
+ struct MLoopCol *mloopcol;
+/* END BMESH ONLY */
+/*#endif*/
+
struct MFace *mface; /* array of mesh object mode faces */
struct MTFace *mtface; /* store face UV's and texture here */
struct TFace *tface; /* depecrated, use mtface */
@@ -76,8 +95,20 @@ typedef struct Mesh {
struct CustomData vdata, edata, fdata;
+/*#ifdef USE_BMESH_FORWARD_COMPAT*/ /* XXX - ifdefs dont work here! */
+/* BMESH ONLY */
+ struct CustomData pdata, ldata;
+/* END BMESH ONLY */
+/*#endif*/
+
int totvert, totedge, totface, totselect;
-
+
+/*#ifdef USE_BMESH_FORWARD_COMPAT*/
+/* BMESH ONLY */
+ int totpoly, totloop;
+/* END BMESH ONLY */
+/*#endif*/ /* XXX - ifdefs dont work here! */
+
/* the last selected vertex/edge/face are used for the active face however
* this means the active face must always be selected, this is to keep track
* of the last selected face and is similar to the old active face flag where
@@ -199,7 +230,7 @@ typedef struct TFace {
* will eventually be removed */
#if 0 /* enable in bmesh branch only for now */
-#define USE_MESH_FORWARDS_COMAT
+#define USE_BMESH_SAVE_AS_COMPAT
#endif