Fix #104730: Suppress using anonymous UV layers for rendering #105192
|
@ -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
|
||||
|
||||
return data->layers[layer_index].anonymous_id != nullptr;
|
||||
}
|
||||
|
||||
static bool customData_resize(CustomData *data, const int amount)
|
||||
|
|
Loading…
Reference in New Issue
Can this be implemented with
CustomData_get_layer_index_n
?