Refactor of modifiers' apply function: now use a single bit-flag parameter to pass options, instead of having one parameter per boolean flag (i.e. replaces current useRenderParams and isFinalCalc by a single ModifierApplyFlag flag. ModifierApplyFlag is an enum defined in BKE_modifier.h). This way we won't anymore have to edit all modifier files when e.g. adding a new control flag!

Should have no effect over modifier behavior.
This commit is contained in:
2012-05-09 15:00:26 +00:00
parent 895e426e26
commit 318b44fe5d
48 changed files with 125 additions and 131 deletions

View File

@@ -246,7 +246,7 @@ static void deformVerts_do(HookModifierData *hmd, Object *ob, DerivedMesh *dm,
static void deformVerts(ModifierData *md, Object *ob, DerivedMesh *derivedData,
float (*vertexCos)[3], int numVerts,
int UNUSED(useRenderParams), int UNUSED(isFinalCalc))
ModifierApplyFlag UNUSED(flag))
{
HookModifierData *hmd = (HookModifierData *) md;
DerivedMesh *dm = derivedData;