Fix #116325: crash assigning non-valid material.paint_active_slot #116345

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:116325 into main 2023-12-19 15:46:14 +01:00

1 Commits

Author SHA1 Message Date
Philipp Oeser e72d3d9c1b Fix #116325: crash assigning non-valid `material.paint_active_slot`
Similar to 64e955f522 (but extended a bit).

Fix by preventing access of non-existent (or out of bounds)
`TexPaintSlot`.

In the future, we should probably even prevent it further by using
`RNA_def_property_int_funcs` (but that is for a later commit).
2023-12-19 15:11:50 +01:00