diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-11-06 14:36:49 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:06 +0300 |
commit | 8dbb6f0d5dd923c57af74f16bbb0e86333dd0a51 (patch) | |
tree | 30c5d9d64d00f08c70b78447b8c45467f298fe62 | |
parent | e3dcbc36796fcf8b9c86a3d964a65966a4ad399e (diff) |
Removed unused voxel_filter_size DNA property.
This is an artifact of earlier attempts to implement velocity smoothing,
but doesn't work anyway.
Conflicts:
source/blender/physics/intern/BPH_mass_spring.cpp
-rw-r--r-- | source/blender/makesdna/DNA_cloth_types.h | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_cloth.c | 9 | ||||
-rw-r--r-- | source/blender/physics/intern/BPH_mass_spring.cpp | 10 |
3 files changed, 1 insertions, 20 deletions
diff --git a/source/blender/makesdna/DNA_cloth_types.h b/source/blender/makesdna/DNA_cloth_types.h index 85c91a510c0..c32f6dbfbe5 100644 --- a/source/blender/makesdna/DNA_cloth_types.h +++ b/source/blender/makesdna/DNA_cloth_types.h @@ -81,7 +81,7 @@ typedef struct ClothSimSettings { */ float bending_damping; /* damping of bending springs */ int voxel_res; /* resolution of voxel grid for interaction */ - int voxel_filter_size; /* filter size for voxel grid */ + int pad; int stepsPerFrame; /* Number of time steps per frame. */ int flags; /* flags, see CSIMSETT_FLAGS enum above. */ diff --git a/source/blender/makesrna/intern/rna_cloth.c b/source/blender/makesrna/intern/rna_cloth.c index 4e1c91269a3..ff5f2d2c4d4 100644 --- a/source/blender/makesrna/intern/rna_cloth.c +++ b/source/blender/makesrna/intern/rna_cloth.c @@ -477,15 +477,6 @@ static void rna_def_cloth_sim_settings(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Voxel Grid Resolution", "Resolution of the voxel grid for interaction effects"); RNA_def_property_update(prop, 0, "rna_cloth_update"); -#if 0 /* disabled */ - prop = RNA_def_property(srna, "voxel_filter_size", PROP_INT, PROP_UNSIGNED); - RNA_def_property_int_sdna(prop, NULL, "voxel_filter_size"); - RNA_def_property_range(prop, 0, 8); - RNA_def_property_int_default(prop, 0); - RNA_def_property_ui_text(prop, "Voxel Grid Filter Size", "Number of cells to use for filtering grid velocity"); - RNA_def_property_update(prop, 0, "rna_cloth_update"); -#endif - /* springs */ prop = RNA_def_property(srna, "use_stiffness_scale", PROP_BOOLEAN, PROP_NONE); diff --git a/source/blender/physics/intern/BPH_mass_spring.cpp b/source/blender/physics/intern/BPH_mass_spring.cpp index 67042014971..15693965fe0 100644 --- a/source/blender/physics/intern/BPH_mass_spring.cpp +++ b/source/blender/physics/intern/BPH_mass_spring.cpp @@ -564,11 +564,6 @@ static void cloth_calc_volume_force(ClothModifierData *clmd) }
BPH_hair_volume_normalize_vertex_grid(vertex_grid);
-#if 0
- /* apply velocity filter */
- BPH_hair_volume_vertex_grid_filter_box(vertex_grid, clmd->sim_parms->voxel_filter_size);
-#endif
-
vert = cloth->verts;
for (i = 0; i < numverts; i++, vert++) {
float x[3], v[3], f[3], dfdx[3][3], dfdv[3][3];
@@ -784,11 +779,6 @@ static void cloth_continuum_step(ClothModifierData *clmd) cloth_continuum_fill_grid(grid, cloth);
-#if 0
- /* apply velocity filter */
- BPH_hair_volume_vertex_grid_filter_box(vertex_grid, clmd->sim_parms->voxel_filter_size);
-#endif
-
for (i = 0, vert = cloth->verts; i < numverts; i++, vert++) {
float x[3], v[3], nv[3];
|