Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <zeddb>2018-09-27 16:54:10 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-27 21:19:28 +0300
commita16e5b8efa8be09362d5e56812221db4705b0e26 (patch)
tree2ad732c5d0b78e345a1f0aaef1dbcc36bc1c509f /source/blender/modifiers
parent975a40dceb560a6bfc67b1562829acc541fa5716 (diff)
Cleanup: remove unused DerivedMesh code.
Differential Revision: https://developer.blender.org/D3736
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_fluidsim_util.c2
-rw-r--r--source/blender/modifiers/intern/MOD_ocean.c32
2 files changed, 1 insertions, 33 deletions
diff --git a/source/blender/modifiers/intern/MOD_fluidsim_util.c b/source/blender/modifiers/intern/MOD_fluidsim_util.c
index 68968953459..fc1235b3a29 100644
--- a/source/blender/modifiers/intern/MOD_fluidsim_util.c
+++ b/source/blender/modifiers/intern/MOD_fluidsim_util.c
@@ -164,7 +164,7 @@ void fluidsim_free(FluidsimModifierData *fluidmd)
}
#ifdef WITH_MOD_FLUID
-/* read .bobj.gz file into a fluidsimDerivedMesh struct */
+/* read .bobj.gz file into a fluidsimMesh struct */
static Mesh *fluidsim_read_obj(const char *filename, const MPoly *mp_example)
{
int wri = 0, i;
diff --git a/source/blender/modifiers/intern/MOD_ocean.c b/source/blender/modifiers/intern/MOD_ocean.c
index 12845b27166..5939c047817 100644
--- a/source/blender/modifiers/intern/MOD_ocean.c
+++ b/source/blender/modifiers/intern/MOD_ocean.c
@@ -183,38 +183,6 @@ static bool dependsOnNormals(ModifierData *md)
return (omd->geometry_mode != MOD_OCEAN_GEOM_GENERATE);
}
-#if 0
-static void dm_get_bounds(DerivedMesh *dm, float *sx, float *sy, float *ox, float *oy)
-{
- /* get bounding box of underlying dm */
- int v, totvert = dm->getNumVerts(dm);
- float min[3], max[3], delta[3];
-
- MVert *mvert = dm->getVertDataArray(dm, 0);
-
- copy_v3_v3(min, mvert->co);
- copy_v3_v3(max, mvert->co);
-
- for (v = 1; v < totvert; v++, mvert++) {
- min[0] = min_ff(min[0], mvert->co[0]);
- min[1] = min_ff(min[1], mvert->co[1]);
- min[2] = min_ff(min[2], mvert->co[2]);
-
- max[0] = max_ff(max[0], mvert->co[0]);
- max[1] = max_ff(max[1], mvert->co[1]);
- max[2] = max_ff(max[2], mvert->co[2]);
- }
-
- sub_v3_v3v3(delta, max, min);
-
- *sx = delta[0];
- *sy = delta[1];
-
- *ox = min[0];
- *oy = min[1];
-}
-#endif
-
#ifdef WITH_OCEANSIM
typedef struct GenerateOceanGeometryData {