From f74201190dfe64b29f2b5f270ac2b3543066834d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 8 May 2013 12:59:35 +0000 Subject: code cleanup: remove references to BLI_rand.h --- source/blender/modifiers/intern/MOD_weightvg_util.h | 9 ++------- source/blender/modifiers/intern/MOD_weightvgedit.c | 1 + source/blender/modifiers/intern/MOD_weightvgproximity.c | 1 + 3 files changed, 4 insertions(+), 7 deletions(-) (limited to 'source/blender/modifiers/intern') 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" -- cgit v1.2.3