[Bf-committers] Patch to correct error in editmesh_tools.c for MSVC
Lguillaume
lecocqguillaume at gmail.com
Tue Feb 14 10:14:20 CET 2006
Hello, editmesh_tools.c does not compile under MSVC, this patch correct
the problem, just a problem of variable declaration:
Index: source/blender/src/editmesh_tools.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/editmesh_tools.c,v
retrieving revision 1.136
diff -u -r1.136 editmesh_tools.c
--- source/blender/src/editmesh_tools.c 13 Feb 2006 22:49:46 -0000
1.136
+++ source/blender/src/editmesh_tools.c 14 Feb 2006 09:04:19 -0000
@@ -5576,15 +5576,17 @@
EditEdge *eed;
LinkNode *edgeCollection, *currEdge;
-
+ int currTag, lowtag;
+ short listfound;
+ short ebalanced = 0;
edgeCollection = NULL;
currEdge = NULL;
allCollections = NULL;
- int currTag, lowtag;
- short ebalanced = 0;
- short listfound;
+
+
+
currTag = 1;
@@ -5677,14 +5679,14 @@
EditFace *efa;
LinkNode *faceCollection, *currFace;
-
+ int currTag, lowtag;
+ short listfound,aCount;
+ int tagArray[3]; /*used to pull the tags out of faces vertices.
an entry of -1 means no vertex exists....*/
faceCollection = NULL;
currFace = NULL;
allCollections = NULL;
- int currTag, lowtag;
- short listfound,aCount;
- int tagArray[3]; /*used to pull the tags out of faces vertices.
an entry of -1 means no vertex exists....*/
+
currTag = 1; /*don't start with zero since f1 is cleared to
that in editvert and editface structs already*/
for (efa=G.editMesh->faces.first; efa; efa=efa->next){
-------------- next part --------------
Index: source/blender/src/editmesh_tools.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/editmesh_tools.c,v
retrieving revision 1.136
diff -u -r1.136 editmesh_tools.c
--- source/blender/src/editmesh_tools.c 13 Feb 2006 22:49:46 -0000 1.136
+++ source/blender/src/editmesh_tools.c 14 Feb 2006 09:04:19 -0000
@@ -5576,15 +5576,17 @@
EditEdge *eed;
LinkNode *edgeCollection, *currEdge;
-
+ int currTag, lowtag;
+ short listfound;
+ short ebalanced = 0;
edgeCollection = NULL;
currEdge = NULL;
allCollections = NULL;
- int currTag, lowtag;
- short ebalanced = 0;
- short listfound;
+
+
+
currTag = 1;
@@ -5677,14 +5679,14 @@
EditFace *efa;
LinkNode *faceCollection, *currFace;
-
+ int currTag, lowtag;
+ short listfound,aCount;
+ int tagArray[3]; /*used to pull the tags out of faces vertices. an entry of -1 means no vertex exists....*/
faceCollection = NULL;
currFace = NULL;
allCollections = NULL;
- int currTag, lowtag;
- short listfound,aCount;
- int tagArray[3]; /*used to pull the tags out of faces vertices. an entry of -1 means no vertex exists....*/
+
currTag = 1; /*don't start with zero since f1 is cleared to that in editvert and editface structs already*/
for (efa=G.editMesh->faces.first; efa; efa=efa->next){
More information about the Bf-committers
mailing list