UI: Use sliders and [0, 1] ranges in ocean modifier
The ocean modifier has two properties that use a [0, 10] hard min and hard max. The values act as factors though, so it makes more sense to use sliders and a 0 to 1 range. This commit also bumps the file subversion to avoid repeatedly applying the change to the properties' range. Differential Revision: https://developer.blender.org/D8186
This commit is contained in:
@@ -831,7 +831,7 @@ void BKE_ocean_init(struct Ocean *o,
|
||||
o->_A = A;
|
||||
o->_w = w;
|
||||
o->_damp_reflections = 1.0f - damp;
|
||||
o->_wind_alignment = alignment;
|
||||
o->_wind_alignment = alignment * 10.0f;
|
||||
o->_depth = depth;
|
||||
o->_Lx = Lx;
|
||||
o->_Lz = Lz;
|
||||
@@ -845,7 +845,7 @@ void BKE_ocean_init(struct Ocean *o,
|
||||
|
||||
/* Common JONSWAP parameters. */
|
||||
o->_fetch_jonswap = fetch_jonswap;
|
||||
o->_sharpen_peak_jonswap = sharpen_peak_jonswap;
|
||||
o->_sharpen_peak_jonswap = sharpen_peak_jonswap * 10.0f;
|
||||
|
||||
o->_do_disp_y = do_height_field;
|
||||
o->_do_normals = do_normals;
|
||||
|
||||
Reference in New Issue
Block a user