Fix #104730: Suppress using anonymous UV layers for rendering #105192

Closed
Martijn Versteegh wants to merge 5 commits from Baardaap/blender:suppressrenderingofanonymouslayers into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 1132ab4851 - Show all commits

View File

@ -2688,11 +2688,11 @@ void CustomData_clear_layer_flag(CustomData *data, const int type, const int fla
bool CustomData_layer_is_anonymous(const struct CustomData *data, int type, int n)
{
const int layer_index = data->typemap[type];
BLI_assert(customdata_typemap_is_valid(data));
BLI_assert(data->layers[layer_index + n].type == type);
const int layer_index = CustomData_get_layer_index_n(data, type, n);
return data->layers[layer_index + n].anonymous_id != nullptr;
BLI_assert(layer_index >=0);
Baardaap marked this conversation as resolved Outdated

Can this be implemented with CustomData_get_layer_index_n?

Can this be implemented with `CustomData_get_layer_index_n`?
return data->layers[layer_index].anonymous_id != nullptr;
}
static bool customData_resize(CustomData *data, const int amount)