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
path: root/source
diff options
context:
space:
mode:
authorRohan Rathi <rohanrathi08@gmail.com>2018-08-04 20:08:54 +0300
committerRohan Rathi <rohanrathi08@gmail.com>2018-08-04 20:08:54 +0300
commitcc30793a76fa058f53ed43f7515c6417128ffebe (patch)
treee0be936178314890db8408d65efcef2b08035bec /source
parent7db1db72bbdd178e0c8da4b39bfa166a1f0e2f84 (diff)
Added comments to seam and sharp len, removed unused var
Diffstat (limited to 'source')
-rw-r--r--source/blender/bmesh/tools/bmesh_bevel.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c
index bcf44ad4384..f9555b324c3 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -152,8 +152,8 @@ typedef struct BoundVert {
Profile profile; /* edge profile between this and next BoundVert */
bool any_seam; /* are any of the edges attached here seams? */
bool visited; /* used during delta adjust pass */
- int seam_len;
- int sharp_len;
+ int seam_len; /* length of seam starting from current boundvert to next boundvert with ccw ordering */
+ int sharp_len; /* Same as seam_len but defines length of sharp edges */
// int _pad;
} BoundVert;
@@ -185,7 +185,6 @@ typedef struct BevVert {
EdgeHalf *edges; /* array of size edgecount; CCW order from vertex normal side */
BMEdge **wire_edges; /* array of size wirecount of wire edges */
VMesh *vmesh; /* mesh structure for replacing vertex */
- bool fix_shading;
} BevVert;
/* Bevel parameters and state */
@@ -3209,8 +3208,6 @@ static VMesh *adj_vmesh(BevelParams *bp, BevVert *bv)
return tri_corner_adj_vmesh(bp, bv);
}
- bv->fix_shading = true;
-
/* First construct an initial control mesh, with nseg==2 */
ns = bv->vmesh->seg;
vm0 = new_adj_vmesh(mem_arena, n, 2, bv->vmesh->boundstart);