Lukas Tönne
37e2a27bdd
Fix #80876 : Ocean modifier "Delete Bake" button does not work
...
The ocean modifier uses its Bake operator for both baking and freeing
the cache, based on the `free` operator property.
There are two bugs here:
1. The "Delete Bake" variant of the button was created using the
`WM_OP_EXEC_DEFAULT` operator context. This skips the `invoke`
callback which is crucial for setting the operator `modifier`
property. Without that the modifier will just exit early.
The "Bake" button is drawn using the `uiItemO` function which uses
the invoke context automatically, so it does not have this issue.
2. The `free` property is set for the "Delete Bake" variant, but was
never reset to its initial `false` value. The "Bake" variant has to
also set this property, otherwise it will always execute the "free"
code path.
Pull Request: https://projects.blender.org/blender/blender/pulls/123506
2024-06-24 10:27:28 +02:00
..
2024-05-20 10:14:41 -04:00
2024-05-20 13:18:24 -04:00
2024-04-24 17:01:22 +02:00
2024-05-04 13:29:35 +02:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-05-20 13:11:18 -04:00
2024-02-19 15:59:59 +01:00
2024-03-28 18:28:35 -04:00
2024-05-20 10:14:41 -04:00
2024-04-04 22:46:41 +02:00
2024-02-19 15:59:59 +01:00
2024-04-04 22:46:41 +02:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-03-11 10:54:23 +01:00
2024-02-27 17:57:50 +11:00
2024-05-30 14:12:26 +02:00
2024-04-05 15:28:28 +02:00
2024-04-24 17:01:22 +02:00
2024-04-20 13:46:14 +10:00
2024-02-23 18:18:23 +01:00
2024-05-21 13:16:53 +02:00
2024-03-05 11:51:29 +01:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-04-06 14:25:18 +02:00
2024-02-23 10:56:47 +01:00
2024-05-28 12:12:31 +02:00
2024-05-08 12:35:06 +02:00
2024-04-11 16:15:18 +02:00
2024-05-15 16:25:41 +02:00
2024-03-29 11:18:06 +01:00
2024-03-08 20:19:46 +08:00
2024-04-01 15:51:35 +11:00
2024-04-30 09:08:46 -04:00
2024-04-24 17:01:22 +02:00
2024-04-24 17:01:22 +02:00
2024-05-21 14:25:41 +02:00
2024-01-30 17:19:35 +01:00
2024-02-19 15:59:59 +01:00
2024-02-27 17:57:50 +11:00
2024-05-20 10:14:41 -04:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-05-20 10:14:41 -04:00
2024-05-16 12:30:03 +08:00
2024-05-29 14:55:14 +02:00
2024-02-26 15:04:28 -05:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2024-02-19 15:59:59 +01:00
2024-05-02 16:22:19 +02:00
2024-04-18 20:55:13 +02:00
2024-02-19 15:59:59 +01:00
2024-04-19 09:03:31 -04:00
2024-06-13 12:15:55 +02:00
2024-01-18 22:51:30 +01:00
2024-04-04 22:46:41 +02:00
2024-06-24 10:27:28 +02:00
2024-02-19 15:59:59 +01:00
2024-05-20 13:18:24 -04:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-05-20 10:14:41 -04:00
2024-04-04 22:46:41 +02:00
2024-03-06 16:14:34 +01:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-03-07 16:23:35 -05:00
2024-03-29 13:29:30 +11:00
2024-02-19 15:59:59 +01:00
2023-08-16 00:20:26 +10:00
2024-04-04 22:46:41 +02:00
2024-04-19 09:03:31 -04:00
2024-05-20 13:18:24 -04:00
2024-04-24 17:01:22 +02:00
2024-05-23 14:06:56 -04:00
2024-05-16 14:53:09 +02:00
2024-01-29 16:49:16 +01:00
2024-03-29 21:42:30 +01:00
2023-09-22 03:18:17 +02:00
2024-03-08 17:15:08 +11:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-04-24 17:01:22 +02:00
2024-04-04 22:46:41 +02:00
2024-04-04 22:46:41 +02:00
2024-02-19 15:59:59 +01:00
2023-05-31 16:19:06 +02:00
2024-04-24 17:01:22 +02:00
2024-02-19 15:59:59 +01:00
2024-04-24 17:01:22 +02:00
2024-02-19 15:59:59 +01:00
2024-04-04 22:46:41 +02:00