diff options
author | Jiri Hnidek <jiri.hnidek@tul.cz> | 2006-08-20 19:22:56 +0400 |
---|---|---|
committer | Jiri Hnidek <jiri.hnidek@tul.cz> | 2006-08-20 19:22:56 +0400 |
commit | 2ee42ac01e6f4b154ac68976024af0615f7acb26 (patch) | |
tree | 9a2400a99bf7880a2f146c7a89bd2d8c0108374c /source/blender/src/editmesh_add.c | |
parent | ffe630b452f4abb28c105fca2b8eb9fdb6e72370 (diff) |
Huge commit: VERSE
- All code is in #ifdef ... #endif
- Only make build system is supported and you have to add:
export WITH_VERSE=true
to user-def.mk file
- Blender can share only mesh objects and bitmaps now
- More informations can be found at wiki:
http://mediawiki.blender.org/index.php/BlenderDev/VerseIntegrationToBlender
http://mediawiki.blender.org/index.php/BlenderDev/VerseIntegrationToBlenderUserDoc
I hope, that I didn't forget at anything
Diffstat (limited to 'source/blender/src/editmesh_add.c')
-rw-r--r-- | source/blender/src/editmesh_add.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/source/blender/src/editmesh_add.c b/source/blender/src/editmesh_add.c index b10d855d12e..18f8fbd20dc 100644 --- a/source/blender/src/editmesh_add.c +++ b/source/blender/src/editmesh_add.c @@ -60,6 +60,11 @@ #include "BKE_object.h" #include "BKE_utildefines.h" +#ifdef WITH_VERSE +#include "BKE_verse.h" +#endif + + #include "BIF_editmesh.h" #include "BIF_graphics.h" #include "BIF_interface.h" @@ -69,6 +74,10 @@ #include "BIF_toolbox.h" #include "BIF_transform.h" +#ifdef WITH_VERSE +#include "BIF_verse.h" +#endif + #include "BDR_editobject.h" #include "BSE_view.h" @@ -233,6 +242,12 @@ void add_click_mesh(void) countall(); +#ifdef WITH_VERSE + if(G.editMesh->vnode) { + sync_all_verseverts_with_editverts((VNode*)G.editMesh->vnode); + } +#endif + BIF_undo_push("Add vertex/edge/face"); allqueue(REDRAWVIEW3D, 0); DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA); @@ -561,7 +576,18 @@ static void fix_new_face(EditFace *eface) eface->flag &= ~ME_SMOOTH; /* flip face, when too much "face normals" in neighbourhood is different */ - if(count > 0) flipface(eface); + if(count > 0) { + flipface(eface); +#ifdef WITH_VERSE + if(eface->vface) { + struct VNode *vnode; + struct VLayer *vlayer; + vnode = (VNode*)((Mesh*)G.obedit->data)->vnode; + vlayer = find_verse_layer_type((VGeomData*)vnode->data, POLYGON_LAYER); + add_item_to_send_queue(&(vlayer->queue), (void*)eface->vface, VERSE_FACE); + } +#endif + } } void addedgeface_mesh(void) |