diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-04 07:45:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-04 07:45:30 +0400 |
commit | 93f5e2218a5103e91ff4c3943aec3bc3d6f9c69e (patch) | |
tree | 023faff5996a38655b1cab90396469be00e733cd /source/blender/modifiers/intern/MOD_weightvgedit.c | |
parent | 4bd60205fbdd7935fdda8f2d6f75e6ce3eb17c8f (diff) |
code cleanup: replace strncpy -> BLI_strncpy, skip first 2 chars when making a hash from the object name.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_weightvgedit.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvgedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvgedit.c b/source/blender/modifiers/intern/MOD_weightvgedit.c index 959e4d4f59d..c8da0eb6de7 100644 --- a/source/blender/modifiers/intern/MOD_weightvgedit.c +++ b/source/blender/modifiers/intern/MOD_weightvgedit.c @@ -253,7 +253,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, DerivedMesh *der RNG *rng = NULL; if (wmd->falloff_type == MOD_WVG_MAPPING_RANDOM) - rng = BLI_rng_new_srandom(BLI_ghashutil_strhash(ob->id.name)); + rng = BLI_rng_new_srandom(BLI_ghashutil_strhash(ob->id.name + 2)); weightvg_do_map(numVerts, new_w, wmd->falloff_type, wmd->cmap_curve, rng); |