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/edit.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/edit.c')
-rw-r--r-- | source/blender/src/edit.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index bad89da633f..914ddffb528 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -82,6 +82,10 @@ #include "BKE_object.h" #include "BKE_utildefines.h" +#ifdef WITH_VERSE +#include "BKE_verse.h" +#endif + #include "BIF_editmesh.h" #include "BIF_editview.h" #include "BIF_editarmature.h" @@ -94,6 +98,10 @@ #include "BIF_screen.h" #include "BIF_toolbox.h" +#ifdef WITH_VERSE +#include "BIF_verse.h" +#endif + #include "BSE_edit.h" #include "BSE_drawipo.h" #include "BSE_drawview.h" @@ -759,6 +767,10 @@ static void special_transvert_update(void) DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA); if(G.obedit->type==OB_MESH) { +#ifdef WITH_VERSE + if(G.editMesh->vnode) + sync_all_verseverts_with_editverts((VNode*)G.editMesh->vnode); +#endif recalc_editnormals(); // does face centers too } else if ELEM(G.obedit->type, OB_CURVE, OB_SURF) { @@ -1114,6 +1126,9 @@ void snap_sel_to_grid() ob->loc[1]+= vec[1]; ob->loc[2]+= vec[2]; } +#ifdef WITH_VERSE + if(ob->vnode) b_verse_send_transformation(ob); +#endif } } @@ -1212,6 +1227,9 @@ void snap_sel_to_curs() ob->loc[1]+= vec[1]; ob->loc[2]+= vec[2]; } +#ifdef WITH_VERSE + if(ob->vnode) b_verse_send_transformation(ob); +#endif } } @@ -1519,6 +1537,9 @@ void snap_to_center() ob->loc[1]+= vec[1]; ob->loc[2]+= vec[2]; } +#ifdef WITH_VERSE + if(ob->vnode) b_verse_send_transformation(ob); +#endif } } |