Fix: Use ShaderCreateInfo for Cycles fallback display. #104981
|
@ -3004,7 +3004,6 @@ int CustomData_number_of_anonymous_layers(const CustomData *data, const int type
|
|||
return number;
|
||||
}
|
||||
|
||||
|
||||
int CustomData_number_of_layers_typemask(const CustomData *data, const eCustomDataMask mask)
|
||||
{
|
||||
int number = 0;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
/* Macros to help reduce code clutter in rna_mesh.c */
|
||||
|
||||
|
||||
/* Define the accessors for a basic CustomDataLayer collection, skipping anonymous layers */
|
||||
#define DEFINE_CUSTOMDATA_LAYER_COLLECTION(collection_name, customdata_type, layer_type) \
|
||||
/* check */ \
|
||||
|
@ -38,7 +37,9 @@
|
|||
static int rna_Mesh_##collection_name##s_length(PointerRNA *ptr) \
|
||||
{ \
|
||||
CustomData *data = rna_mesh_##customdata_type(ptr); \
|
||||
return data ? CustomData_number_of_layers(data, layer_type) - CustomData_number_of_anonymous_layers(data, layer_type) : 0; \
|
||||
return data ? CustomData_number_of_layers(data, layer_type) - \
|
||||
CustomData_number_of_anonymous_layers(data, layer_type) : \
|
||||
0; \
|
||||
} \
|
||||
/* index range */ \
|
||||
static void rna_Mesh_##collection_name##_index_range( \
|
||||
|
@ -46,11 +47,12 @@
|
|||
{ \
|
||||
CustomData *data = rna_mesh_##customdata_type(ptr); \
|
||||
*min = 0; \
|
||||
*max = data ? CustomData_number_of_layers(data, layer_type) - CustomData_number_of_anonymous_layers(data, layer_type) - 1 : 0; \
|
||||
*max = data ? CustomData_number_of_layers(data, layer_type) - \
|
||||
CustomData_number_of_anonymous_layers(data, layer_type) - 1 : \
|
||||
0; \
|
||||
*max = MAX2(0, *max); \
|
||||
}
|
||||
|
||||
|
||||
/* Define the accessors for special CustomDataLayers in the collection
|
||||
* (active, render, clone, stencil, etc) */
|
||||
#define DEFINE_CUSTOMDATA_LAYER_COLLECTION_ACTIVEITEM( \
|
||||
|
|
Loading…
Reference in New Issue