diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-11 01:27:37 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-11 01:27:37 +0300 |
commit | d449deec21355426b6e1b487cd87067da28009a7 (patch) | |
tree | 5aa8427a4a8b76948d8cc43b329dab6c8e4b01d9 /source/blender/blenloader/intern/versioning_cycles.c | |
parent | e3de755ae31503284277681b52947c02aef5d411 (diff) |
Cleanup: use enum for local versioning enum
Diffstat (limited to 'source/blender/blenloader/intern/versioning_cycles.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_cycles.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/blenloader/intern/versioning_cycles.c b/source/blender/blenloader/intern/versioning_cycles.c index c654972730f..e1ceed82ba7 100644 --- a/source/blender/blenloader/intern/versioning_cycles.c +++ b/source/blender/blenloader/intern/versioning_cycles.c @@ -330,7 +330,7 @@ static void image_node_colorspace(bNode *node) return; } - const int SHD_COLORSPACE_NONE = 0; + enum { SHD_COLORSPACE_NONE = 0 }; Image *image = (Image *)node->id; if (color_space == SHD_COLORSPACE_NONE) { STRNCPY(image->colorspace_settings.name, @@ -1362,10 +1362,12 @@ void blo_do_versions_cycles(FileData *UNUSED(fd), Library *UNUSED(lib), Main *bm void do_versions_after_linking_cycles(Main *bmain) { - const int DENOISER_AUTO = 0; - const int DENOISER_NLM = 1; - const int DENOISER_OPTIX = 2; - const int DENOISER_OPENIMAGEDENOISE = 4; + enum { + DENOISER_AUTO = 0, + DENOISER_NLM = 1, + DENOISER_OPTIX = 2, + DENOISER_OPENIMAGEDENOISE = 4, + }; if (!MAIN_VERSION_ATLEAST(bmain, 280, 66)) { /* Shader node tree changes. After lib linking so we have all the typeinfo |