Fix #111024: Crash when adding attribute to curve object #111036

Merged
Pratik Borhade merged 5 commits from PratikPB2123/blender:111024-cv-vgroup into main 2023-08-12 07:37:46 +02:00

5 Commits

Author SHA1 Message Date
Pratik Borhade 01ebd5f21b Use c++ casting 2023-08-12 11:04:36 +05:30
Pratik Borhade 826471f874 Remove const return 2023-08-11 18:02:29 +05:30
Pratik Borhade 0dbfba3360 Cleanup: declare new function in header
And use it in BKE_id_attribute_and_defgroup_unique_name_check
2023-08-11 16:47:35 +05:30
Pratik Borhade 4d44831831 Create and use BKE_id_supports_vertex_groups 2023-08-11 15:35:44 +05:30
Pratik Borhade 0f77fce802 Fix #111024: Crash when adding attribute to curve object
After 12ef20990b, attributes and vertex group names were checked
simulatanously to fix the name collision. But this results in crash when
new attribute is added to curve object (when it searches for vertex group
list). To avoid the crash, check for supported id types.
2023-08-11 11:51:26 +05:30