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:
authorJiri Hnidek <jiri.hnidek@tul.cz>2006-08-20 19:22:56 +0400
committerJiri Hnidek <jiri.hnidek@tul.cz>2006-08-20 19:22:56 +0400
commit2ee42ac01e6f4b154ac68976024af0615f7acb26 (patch)
tree9a2400a99bf7880a2f146c7a89bd2d8c0108374c /source/blender/src/editmesh_loop.c
parentffe630b452f4abb28c105fca2b8eb9fdb6e72370 (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_loop.c')
-rw-r--r--source/blender/src/editmesh_loop.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/source/blender/src/editmesh_loop.c b/source/blender/src/editmesh_loop.c
index a5b41d8291e..06da8711028 100644
--- a/source/blender/src/editmesh_loop.c
+++ b/source/blender/src/editmesh_loop.c
@@ -63,6 +63,10 @@ editmesh_loop: tools with own drawing subloops, select, knife, subdiv
#include "BKE_object.h"
#include "BKE_utildefines.h"
+#ifdef WITH_VERSE
+#include "BKE_verse.h"
+#endif
+
#include "BIF_cursors.h"
#include "BIF_editmesh.h"
#include "BIF_gl.h"
@@ -74,6 +78,10 @@ editmesh_loop: tools with own drawing subloops, select, knife, subdiv
#include "BIF_space.h"
#include "BIF_toolbox.h"
+#ifdef WITH_VERSE
+#include "BIF_verse.h"
+#endif
+
#include "BSE_view.h"
#include "BSE_edit.h"
#include "BSE_drawview.h"
@@ -402,8 +410,12 @@ void CutEdgeloop(int numcuts)
}
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
+#ifdef WITH_VERSE
+ if(G.editMesh->vnode)
+ sync_all_verseverts_with_editverts((VNode*)G.editMesh->vnode);
+#endif
scrarea_queue_headredraw(curarea);
- scrarea_queue_winredraw(curarea);
+ scrarea_queue_winredraw(curarea);
return;
}
@@ -754,6 +766,12 @@ void KnifeSubdivide(char mode)
window_set_cursor(win, oldcursor);
BLI_ghash_free(gh, NULL, (GHashValFreeFP)MEM_freeN);
if (curve) MEM_freeN(curve);
+
+#ifdef WITH_VERSE
+ if(G.editMesh->vnode)
+ sync_all_versefaces_with_editfaces((VNode*)G.editMesh->vnode);
+#endif
+
BIF_undo_push("Knife");
}