Fix T47676: Broken default values for particle brush strength.
Current startup .blend has old (percent?) values for particle brush strength. Since rBe4e21480d6331903c90ab073746484498441e1ac, UI controls do not clamp automatically values anymore, which means when you first enable comb (or any other brush) you get a 50 strength, waaaayyyy to powerful. This commit fixes this in `BLO_update_defaults_startup_blend`, note that it does not fix custom users' startup files, nothing to do here...
This commit is contained in:
parent
b47137ae46
commit
8ead4990d3
Notes:
blender-bot
2023-02-14 08:28:46 +01:00
Referenced by issue #47676, Blender 2.77 RC - Particle Hair Mode Issue
|
@ -650,12 +650,12 @@ void BKE_scene_init(Scene *sce)
|
|||
pset->fade_frames = 2;
|
||||
pset->selectmode = SCE_SELECT_PATH;
|
||||
for (a = 0; a < PE_TOT_BRUSH; a++) {
|
||||
pset->brush[a].strength = 0.5;
|
||||
pset->brush[a].strength = 0.5f;
|
||||
pset->brush[a].size = 50;
|
||||
pset->brush[a].step = 10;
|
||||
pset->brush[a].count = 10;
|
||||
}
|
||||
pset->brush[PE_BRUSH_CUT].strength = 100;
|
||||
pset->brush[PE_BRUSH_CUT].strength = 1.0f;
|
||||
|
||||
sce->r.ffcodecdata.audio_mixrate = 48000;
|
||||
sce->r.ffcodecdata.audio_volume = 1.0f;
|
||||
|
|
|
@ -144,6 +144,12 @@ void BLO_update_defaults_startup_blend(Main *bmain)
|
|||
ts->gpencil_v2d_align = GP_PROJECT_VIEWSPACE;
|
||||
ts->gpencil_seq_align = GP_PROJECT_VIEWSPACE;
|
||||
ts->gpencil_ima_align = GP_PROJECT_VIEWSPACE;
|
||||
|
||||
ParticleEditSettings *pset = &ts->particle;
|
||||
for (int a = 0; a < PE_TOT_BRUSH; a++) {
|
||||
pset->brush[a].strength = 0.5f;
|
||||
}
|
||||
pset->brush[PE_BRUSH_CUT].strength = 1.0f;
|
||||
}
|
||||
|
||||
scene->gm.lodflag |= SCE_LOD_USE_HYST;
|
||||
|
|
Loading…
Reference in New Issue