diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:59:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:59:35 +0400 |
commit | f74201190dfe64b29f2b5f270ac2b3543066834d (patch) | |
tree | 8ce8f66a3452a66bca66b70b0010c8df6b8f53b9 /source/blender/modifiers | |
parent | e4aff350207a436a1814f2c91829004b3d287ff7 (diff) |
code cleanup: remove references to BLI_rand.h
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvg_util.h | 9 | ||||
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvgedit.c | 1 | ||||
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvgproximity.c | 1 |
3 files changed, 4 insertions, 7 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvg_util.h b/source/blender/modifiers/intern/MOD_weightvg_util.h index c7509a937b6..afb77458d7c 100644 --- a/source/blender/modifiers/intern/MOD_weightvg_util.h +++ b/source/blender/modifiers/intern/MOD_weightvg_util.h @@ -28,20 +28,15 @@ * \ingroup modifiers */ - #ifndef __MOD_WEIGHTVG_UTIL_H__ #define __MOD_WEIGHTVG_UTIL_H__ -#include "BLI_rand.h" - -/* so modifier types match their defines */ -#include "MOD_modifiertypes.h" - struct CurveMapping; struct DerivedMesh; struct Object; struct Tex; struct Scene; +struct RNG; /* * XXX I'd like to make modified weights visible in WeightPaint mode, @@ -67,7 +62,7 @@ struct Scene; * 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, 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. diff --git a/source/blender/modifiers/intern/MOD_weightvgedit.c b/source/blender/modifiers/intern/MOD_weightvgedit.c index 12917af0eb7..2cb41cb6196 100644 --- a/source/blender/modifiers/intern/MOD_weightvgedit.c +++ b/source/blender/modifiers/intern/MOD_weightvgedit.c @@ -32,6 +32,7 @@ #include "BLI_ghash.h" #include "BLI_math.h" #include "BLI_string.h" +#include "BLI_rand.h" #include "DNA_color_types.h" /* CurveMapping. */ #include "DNA_mesh_types.h" diff --git a/source/blender/modifiers/intern/MOD_weightvgproximity.c b/source/blender/modifiers/intern/MOD_weightvgproximity.c index 9ad96174a03..9241510f18a 100644 --- a/source/blender/modifiers/intern/MOD_weightvgproximity.c +++ b/source/blender/modifiers/intern/MOD_weightvgproximity.c @@ -34,6 +34,7 @@ #include "BLI_ghash.h" #include "BLI_math.h" #include "BLI_string.h" +#include "BLI_rand.h" #if DO_PROFILE #include "PIL_time.h" |