9d9dc3fc8f
This adds an option `all_keyframes` to the `object.modifier_apply` operator. With the option enabled, the operator will iterate through all the keyframes, then apply the modifier and merge the result back into the original object. This is only done for Grease Pencil objects. This is how the default `Apply` operation worked in GPv2. This adds the functionality back but also keeps the current `Apply` behavior for consistency with other object types. The UI is also changed to show both options in the dropdown menu. Again, this is only shown for Grease Pencil objects. With Geometry Nodes it's possible to add new layers to the geometry. When applying, this will create a single keyframe on the first frame of evaluation. Layers with duplicated names in evaluated geometry will be deduplicated. It's also possible to have layers with empty names. When applying these get renamed to `Layer` (and `Layer.001` etc. when such a layer already exists in the original geometry). Pull Request: https://projects.blender.org/blender/blender/pulls/128487