Cleanup: use static declaration
This commit is contained in:
parent
9e8afa8817
commit
1e4f6b231c
|
@ -88,7 +88,7 @@ static CLG_LogRef LOG = {"bke.volume"};
|
|||
* out of file descriptors or prevent other applications from writing to it.
|
||||
*/
|
||||
|
||||
struct VolumeFileCache {
|
||||
static struct VolumeFileCache {
|
||||
/* Cache Entry */
|
||||
struct Entry {
|
||||
Entry(const std::string &filepath, const openvdb::GridBase::Ptr &grid)
|
||||
|
|
|
@ -40,7 +40,7 @@ static struct {
|
|||
|
||||
extern char datatoc_effect_bloom_frag_glsl[];
|
||||
|
||||
const bool use_highres = true;
|
||||
static const bool use_highres = true;
|
||||
|
||||
static void eevee_create_shader_bloom(void)
|
||||
{
|
||||
|
|
|
@ -693,7 +693,7 @@ void GPENCIL_cache_finish(void *ved)
|
|||
GPU_ATTACHMENT_TEXTURE(pd->color_layer_tx),
|
||||
GPU_ATTACHMENT_TEXTURE(pd->reveal_layer_tx),
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
if (pd->use_object_fb) {
|
||||
pd->color_object_tx = DRW_texture_pool_query_2d(
|
||||
|
|
|
@ -122,7 +122,7 @@ const EnumPropertyItem rna_enum_mapping_type_items[] = {
|
|||
{0, NULL, 0, NULL, NULL},
|
||||
};
|
||||
|
||||
const EnumPropertyItem rna_enum_vector_rotate_type_items[] = {
|
||||
static const EnumPropertyItem rna_enum_vector_rotate_type_items[] = {
|
||||
{NODE_VECTOR_ROTATE_TYPE_AXIS,
|
||||
"AXIS_ANGLE",
|
||||
0,
|
||||
|
|
|
@ -1321,7 +1321,7 @@ static void rna_def_userdef_theme_ui_panel(BlenderRNA *brna)
|
|||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
}
|
||||
|
||||
const EnumPropertyItem rna_enum_userdef_theme_background_types_items[] = {
|
||||
static const EnumPropertyItem rna_enum_userdef_theme_background_types_items[] = {
|
||||
{TH_BACKGROUND_SINGLE_COLOR,
|
||||
"SINGLE_COLOR",
|
||||
0,
|
||||
|
|
Loading…
Reference in New Issue