forked from bartvdbraak/blender
Fix a couple typos in comments.
This commit is contained in:
parent
4f884e21b2
commit
132544dd02
@ -2363,7 +2363,7 @@ int mesh_recalcTesselation(CustomData *fdata,
|
|||||||
totface = mface_index;
|
totface = mface_index;
|
||||||
|
|
||||||
|
|
||||||
/* note essential but without this we store over-alloc'd memory in the CustomData layers */
|
/* not essential but without this we store over-alloc'd memory in the CustomData layers */
|
||||||
if (LIKELY((MEM_allocN_len(mface) / sizeof(*mface)) != totface)) {
|
if (LIKELY((MEM_allocN_len(mface) / sizeof(*mface)) != totface)) {
|
||||||
mface = MEM_reallocN(mface, sizeof(*mface) * totface);
|
mface = MEM_reallocN(mface, sizeof(*mface) * totface);
|
||||||
mface_to_poly_map = MEM_reallocN(mface_to_poly_map, sizeof(*mface_to_poly_map) * totface);
|
mface_to_poly_map = MEM_reallocN(mface_to_poly_map, sizeof(*mface_to_poly_map) * totface);
|
||||||
|
@ -902,7 +902,7 @@ static void calc_sculpt_normal(Sculpt *sd, Object *ob, float an[3], PBVHNode **n
|
|||||||
/* For the smooth brush, uses the neighboring vertices around vert to calculate
|
/* For the smooth brush, uses the neighboring vertices around vert to calculate
|
||||||
a smoothed location for vert. Skips corner vertices (used by only one
|
a smoothed location for vert. Skips corner vertices (used by only one
|
||||||
polygon.) */
|
polygon.) */
|
||||||
static void neighbor_average(SculptSession *ss, float avg[3], const unsigned vert)
|
static void neighbor_average(SculptSession *ss, float avg[3], unsigned vert)
|
||||||
{
|
{
|
||||||
int i, j, ok, total=0;
|
int i, j, ok, total=0;
|
||||||
IndexNode *node= ss->pmap[vert].first;
|
IndexNode *node= ss->pmap[vert].first;
|
||||||
@ -923,7 +923,7 @@ static void neighbor_average(SculptSession *ss, float avg[3], const unsigned ver
|
|||||||
while(node){
|
while(node){
|
||||||
f= &ss->mpoly[node->index];
|
f= &ss->mpoly[node->index];
|
||||||
|
|
||||||
/* find the loop in the poly whic references this vertex */
|
/* find the loop in the poly which references this vertex */
|
||||||
ok = FALSE;
|
ok = FALSE;
|
||||||
ml = ss->mloop + f->loopstart;
|
ml = ss->mloop + f->loopstart;
|
||||||
for (j = 0; j < f->totloop; j++, ml++) {
|
for (j = 0; j < f->totloop; j++, ml++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user