Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/blender.c
| Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | static void blender_version_init(void) | ||||
| } | } | ||||
| else if (STREQ(STRINGIFY(BLENDER_VERSION_CYCLE), "rc")) { | else if (STREQ(STRINGIFY(BLENDER_VERSION_CYCLE), "rc")) { | ||||
| version_cycle = " Release Candidate"; | version_cycle = " Release Candidate"; | ||||
| } | } | ||||
| else if (STREQ(STRINGIFY(BLENDER_VERSION_CYCLE), "release")) { | else if (STREQ(STRINGIFY(BLENDER_VERSION_CYCLE), "release")) { | ||||
| version_cycle = ""; | version_cycle = ""; | ||||
| } | } | ||||
| else { | else { | ||||
| BLI_assert(!"Invalid Blender version cycle"); | BLI_assert_msg(0, "Invalid Blender version cycle"); | ||||
| } | } | ||||
| BLI_snprintf(blender_version_string, | BLI_snprintf(blender_version_string, | ||||
| ARRAY_SIZE(blender_version_string), | ARRAY_SIZE(blender_version_string), | ||||
| "%d.%01d.%d%s", | "%d.%01d.%d%s", | ||||
| BLENDER_VERSION / 100, | BLENDER_VERSION / 100, | ||||
| BLENDER_VERSION % 100, | BLENDER_VERSION % 100, | ||||
| BLENDER_VERSION_PATCH, | BLENDER_VERSION_PATCH, | ||||
| ▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines | |||||