Fix #103761: creating a color attribute doesn't make it active #105020

Closed
Philipp Oeser wants to merge 3 commits from lichtwerk:103761 into blender-v3.5-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

3 Commits

Author SHA1 Message Date
Philipp Oeser bbb8575ee3 Address Code review:
- use BKE_id_attribute_search() to simplify code
- typo in comment
2023-02-22 14:38:32 +01:00
Philipp Oeser ebcaf7c361 Merge branch 'blender-v3.5-release' into 103761 2023-02-22 13:05:42 +01:00
Philipp Oeser abe5d7869a Fix #103761: creating a color attribute doesn't make it active
Originally caused by 6514bb05ea

More cases where the active/default color attributes were not set
correctly:

[1] Using the old Python vertex_colors API (vertex_colors.new)
[2] OBJ importer
[3] Collada importer
[4] Data Transfer layout (both standalone operator and "Generate Data
Layers" from the modifier)

Similar to 101d04f41f.

Brought over from https://archive.blender.org/developer/D16977, see
discussion there why some of the code for data transfer is not for the
genereal attribute API.
2023-02-21 13:33:16 +01:00