Fix #108591: Handle null material adding paint slot #108592

Merged
YimingWu merged 5 commits from ChengduLittleA/blender:fix-108591 into blender-v3.6-release 2023-06-06 04:13:08 +02:00

5 Commits

Author SHA1 Message Date
YimingWu ee6de70bdc Cleanup (missing variable assignage) 2023-06-06 09:50:04 +08:00
YimingWu 22baaaf987 clean up 2023-06-05 21:08:43 +08:00
YimingWu 73cb38da22 Use rgba_float_args_set 2023-06-05 21:08:43 +08:00
YimingWu 7b6d4c66a1 Add mat/tree checks in default_paint_slot_color_get 2023-06-05 21:08:43 +08:00
YimingWu 3531b6c936 Fix #108591: Handle `mat==null` adding paint slot
When adding a texture paint slot to an object, the object could have no
material, this patch handles that so it won't need to call
`default_paint_slot_color_get` to get color from the material.
2023-06-05 21:08:43 +08:00