Fix: Incorrect logic in attribute search function
If a geometry does not have CustomData for a certain domain, it may still have CustomData on other domains. In that case we need to continue to the other domains instead of returning. This worked for meshes because the domains are all at the start of the `info` array. It didn't work for curves.
This commit is contained in:
parent
627d42cd56
commit
d39e0f9616
|
@ -302,7 +302,7 @@ CustomDataLayer *BKE_id_attribute_search(const ID *id,
|
|||
|
||||
CustomData *customdata = info[domain].customdata;
|
||||
if (customdata == NULL) {
|
||||
return NULL;
|
||||
continue;
|
||||
}
|
||||
|
||||
for (int i = 0; i < customdata->totlayer; i++) {
|
||||
|
|
Loading…
Reference in New Issue