Fix #107125: Entering Grease Pencil Vertex Paint mode crashes #107131

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:107125 into main 2023-04-19 16:50:59 +02:00

1 Commits

Author SHA1 Message Date
Philipp Oeser 45e7d9cb7d Fix #107125: Entering Grease Pencil Vertex Paint mode crashes
Caused by uninitialized `ToolSettings` `GpPaint` [which was later
accessed in `BKE_gpencil_palette_ensure`].

Not 100% sure why `ToolSettings` `GpPaint` is properly initialized in a
default startup fille, but for some files, this was not the case (as in
the report)

See 22462fed00 for a similar commit.

Now initialize `ToolSettings` `GpPaint` (alongside `GpVertexPaint`) when
entering grease pencil vertex paint mode.

Should probably go into LTS releases as well.
2023-04-19 15:50:34 +02:00