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:
authorCampbell Barton <ideasman42@gmail.com>2019-05-01 00:40:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-01 01:04:52 +0300
commit910b88674763899c189b694aa306e03055fe33bf (patch)
treeee48bb6e4789d19ecd7dd1d66aa65d75b2e17e83 /source/blender/modifiers/intern/MOD_mask.c
parent163fb251b901f13940d6350d36e9fa46a2fbd73d (diff)
Cleanup: comments (long lines) in modifiers
Also remove duplicate comments in headers.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_mask.c')
-rw-r--r--source/blender/modifiers/intern/MOD_mask.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/source/blender/modifiers/intern/MOD_mask.c b/source/blender/modifiers/intern/MOD_mask.c
index a13e75c76de..3417aaeeb5c 100644
--- a/source/blender/modifiers/intern/MOD_mask.c
+++ b/source/blender/modifiers/intern/MOD_mask.c
@@ -105,9 +105,10 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
}
/* Overview of Method:
- * 1. Get the vertices that are in the vertexgroup of interest
- * 2. Filter out unwanted geometry (i.e. not in vertexgroup), by populating mappings with new vs old indices
- * 3. Make a new mesh containing only the mapping data
+ * 1. Get the vertices that are in the vertexgroup of interest.
+ * 2. Filter out unwanted geometry (i.e. not in vertexgroup),
+ * by populating mappings with new vs old indices.
+ * 3. Make a new mesh containing only the mapping data.
*/
/* get original number of verts, edges, and faces */
@@ -137,9 +138,10 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
return mesh;
}
- /* determine whether each vertexgroup is associated with a selected bone or not
- * - each cell is a boolean saying whether bone corresponding to the ith group is selected
- * - groups that don't match a bone are treated as not existing (along with the corresponding ungrouped verts)
+ /* Determine whether each vertexgroup is associated with a selected bone or not:
+ * - Each cell is a boolean saying whether bone corresponding to the ith group is selected.
+ * - Groups that don't match a bone are treated as not existing
+ * (along with the corresponding ungrouped verts).
*/
bone_select_array = MEM_malloc_arrayN((size_t)defbase_tot, sizeof(char), "mask array");
@@ -154,7 +156,8 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
}
}
- /* verthash gives mapping from original vertex indices to the new indices (including selected matches only)
+ /* verthash gives mapping from original vertex indices to the new indices
+ * (including selected matches only):
* key = oldindex, value = newindex
*/
vertHash = BLI_ghash_int_new_ex("mask vert gh", (unsigned int)maxVerts);