Fluid Sim: Removed unused PointCache pointer
The only uses were setting it to NULL and asserting it is NULL.
This commit is contained in:
@@ -815,7 +815,6 @@ typedef struct FluidsimModifierData {
|
||||
ModifierData modifier;
|
||||
|
||||
struct FluidsimSettings *fss; /* definition is in DNA_object_fluidsim_types.h */
|
||||
struct PointCache *point_cache; /* definition is in DNA_object_force_types.h */
|
||||
} FluidsimModifierData;
|
||||
|
||||
typedef struct ShrinkwrapModifierData {
|
||||
|
@@ -76,11 +76,6 @@ static void copyData(const ModifierData *md, ModifierData *target, const int UNU
|
||||
tfluidmd->fss->meshVelocities = MEM_dupallocN(tfluidmd->fss->meshVelocities);
|
||||
}
|
||||
}
|
||||
|
||||
/* Seems to never be used, but for sqke of consistency... */
|
||||
BLI_assert(fluidmd->point_cache == NULL);
|
||||
BLI_assert(tfluidmd->point_cache == NULL);
|
||||
tfluidmd->point_cache = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -160,10 +160,6 @@ void fluidsim_free(FluidsimModifierData *fluidmd)
|
||||
MEM_SAFE_FREE(fluidmd->fss);
|
||||
}
|
||||
|
||||
/* Seems to never be used, but for sqke of consistency... */
|
||||
BLI_assert(fluidmd->point_cache == NULL);
|
||||
fluidmd->point_cache = NULL;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user