Fix #130110: GPv3: Fill tool respect legacy radius factor

After applying fill tool, the `LEGACY_RADIUS_CONVERSION_FACTOR` was not
multiplied back so the value in the brush settings panel will become
smaller and smaller for each execution of the tool. Now fixed.

Pull Request: https://projects.blender.org/blender/blender/pulls/130120
This commit is contained in:
YimingWu
2024-11-11 12:43:36 +01:00
committed by YimingWu
parent 442498d53c
commit b8eb80c1fd

View File

@@ -1428,7 +1428,8 @@ static bool grease_pencil_apply_fill(bContext &C, wmOperator &op, const wmEvent
WM_cursor_modal_restore(&win);
/* Save extend value for next operation. */
brush.gpencil_settings->fill_extend_fac = op_data.extension_length;
brush.gpencil_settings->fill_extend_fac = op_data.extension_length /
bke::greasepencil::LEGACY_RADIUS_CONVERSION_FACTOR;
BKE_brush_tag_unsaved_changes(&brush);
return true;