37e2a27bdddc7dce92dcd0bd44fab17e4470c27b
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
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
