Files
test2/source/blender/blenkernel
Falk David 998514af7b Fix #115313: GPencil brush direction is not kept
The core of the issue was that `sculpt_flag` was used by three different enums (`eGP_Sculpt_Flag`, `eGP_Sculpt_Mode_Flag`, and `eBrushFlags`). This resulted in the flag getting overriden because `ENUM_OPERATORS` expected the maximum value of `eGP_Sculpt_Flag` to be `(1 << 3)` which it wasn't.

The `sculpt_flag` was exposed through python as `"direction"`.
In the UI this meant that it was effectively used as `brush.direction`. This fix replaces `brush.gpencil_settings.direction` with `brush.direction`.
It also makes sure `sculpt_flag` is only ever used with values from `eGP_Sculpt_Flag`.

Pull Request: https://projects.blender.org/blender/blender/pulls/119373
2024-03-12 14:22:52 +01:00
..
2024-01-15 12:44:14 -05:00
2024-01-03 13:38:14 +01:00
2024-02-06 22:28:10 +11:00
2024-01-03 13:38:14 +01:00
2023-07-04 17:03:02 +02:00
2023-11-27 09:30:52 +11:00
2024-01-19 12:08:48 -05:00
2024-03-02 23:56:37 +01:00
2024-01-15 12:44:14 -05:00
2023-08-18 08:56:12 +10:00
2024-01-11 11:01:50 -05:00