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>2011-09-05 07:09:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-05 07:09:49 +0400
commit57411d1c5f1e1043643bf7e5dbd98803c8ff7311 (patch)
tree248f32360ca4594e32640e535ce7eb5916e3a260 /source/blender/modifiers/intern/MOD_weightvg_util.h
parente4fd20c20c6a64678e7fe3907f795f527498414f (diff)
minor edits.
- init proximity to 1.0f - min/max proximity dist were not being copied. - minor edits to comments - use ascii chars in a few places.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_weightvg_util.h')
-rw-r--r--source/blender/modifiers/intern/MOD_weightvg_util.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvg_util.h b/source/blender/modifiers/intern/MOD_weightvg_util.h
index 1bd40e3879f..b42e9c20035 100644
--- a/source/blender/modifiers/intern/MOD_weightvg_util.h
+++ b/source/blender/modifiers/intern/MOD_weightvg_util.h
@@ -44,8 +44,8 @@ struct Object;
struct MappingInfoModifierData;*/
/*
- * XXX I’d like to make modified weights visible in WeightPaint mode,
- * but couldn’t figure a way to do this…
+ * XXX I'd like to make modified weights visible in WeightPaint mode,
+ * but couldn't figure a way to do this…
* Maybe this will need changes in mesh_calc_modifiers (DerivedMesh.c)?
* Or the WeightPaint mode code itself?
*/
@@ -68,7 +68,7 @@ struct MappingInfoModifierData;*/
* XXX The standard “factor” value is assumed in [0.0, 1.0] range. Else, weird results might appear.
*/
void weightvg_do_mask(int num, int *indices, float *org_w, float *new_w, Object *ob,
- struct DerivedMesh *dm, float fact, const char *defgrp_name, Tex *texture,
+ struct DerivedMesh *dm, float fact, const char defgrp_name[32], Tex *texture,
int tex_use_channel, int tex_mapping, Object *tex_map_object,
const char *tex_uvlayer_name);
@@ -76,7 +76,8 @@ void weightvg_do_mask(int num, int *indices, float *org_w, float *new_w, Object
* 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(MDeformVert *dvert, int defgrp_idx, int num, int *indices, float *weights,
- int do_add, float add_thresh, int do_rem, float rem_thresh);
+void weightvg_update_vg(MDeformVert *dvert, int defgrp_idx, int num,
+ const int *indices, const float *weights, int do_add,
+ float add_thresh, int do_rem, float rem_thresh);
#endif /* MOD_WEIGHTVG_UTIL_H */