diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/modifiers/intern/MOD_weightvg_util.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/modifiers/intern/MOD_weightvg_util.h')
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvg_util.h | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvg_util.h b/source/blender/modifiers/intern/MOD_weightvg_util.h index 8bc56eb61f9..d73cca935d7 100644 --- a/source/blender/modifiers/intern/MOD_weightvg_util.h +++ b/source/blender/modifiers/intern/MOD_weightvg_util.h @@ -50,7 +50,7 @@ struct Tex; * we clamp weightf to this value (or its negative version). * Also used to avoid null power factor. */ -#define MOD_WVG_ZEROFLOOR 1.0e-32f +#define MOD_WVG_ZEROFLOOR 1.0e-32f /* Maps new_w weights in place, using either one of the predefined functions, or a custom curve. * Return values are in new_w. @@ -58,7 +58,8 @@ struct Tex; * vertex index (in case the weight tables do not cover the whole vertices...). * cmap might be NULL, in which case curve mapping mode will return unmodified data. */ -void weightvg_do_map(int num, float *new_w, short mode, struct CurveMapping *cmap, struct RNG *rng); +void weightvg_do_map( + int num, float *new_w, short mode, struct CurveMapping *cmap, struct RNG *rng); /* Applies new_w weights to org_w ones, using either a texture, vgroup or constant value as factor. * Return values are in org_w. @@ -66,20 +67,35 @@ void weightvg_do_map(int num, float *new_w, short mode, struct CurveMapping *cma * vertex index (in case the weight tables do not cover the whole vertices...). * XXX The standard "factor" value is assumed in [0.0, 1.0] range. Else, weird results might appear. */ -void weightvg_do_mask( - const ModifierEvalContext *ctx, - const int num, const int *indices, float *org_w, const float *new_w, Object *ob, - struct Mesh *mesh, const float fact, const char defgrp_name[MAX_VGROUP_NAME], - struct Scene *scene, Tex *texture, const int tex_use_channel, const int tex_mapping, - Object *tex_map_object, const char *tex_uvlayer_name); +void weightvg_do_mask(const ModifierEvalContext *ctx, + const int num, + const int *indices, + float *org_w, + const float *new_w, + Object *ob, + struct Mesh *mesh, + const float fact, + const char defgrp_name[MAX_VGROUP_NAME], + struct Scene *scene, + Tex *texture, + const int tex_use_channel, + const int tex_mapping, + Object *tex_map_object, + const char *tex_uvlayer_name); /* Applies weights to given vgroup (defgroup), and optionally add/remove vertices from the group. * If indices is not NULL, it must be a table of same length as weights, mapping to the real * vertex index (in case the weight table does not cover the whole vertices...). */ -void weightvg_update_vg( - struct MDeformVert *dvert, int defgrp_idx, struct MDeformWeight **dws, int num, - const int *indices, const float *weights, const bool do_add, - const float add_thresh, const bool do_rem, const float rem_thresh); +void weightvg_update_vg(struct MDeformVert *dvert, + int defgrp_idx, + struct MDeformWeight **dws, + int num, + const int *indices, + const float *weights, + const bool do_add, + const float add_thresh, + const bool do_rem, + const float rem_thresh); #endif /* __MOD_WEIGHTVG_UTIL_H__ */ |