Fix bug on Blender version string

Reported by Pablo Vazquez (venomgfx) over irc.
This commit is contained in:
Dalai Felinto 2017-03-15 15:42:01 +01:00
parent c6c85a8c6b
commit 81dc8dd42a
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ void BKE_blender_version_string(char *version_str, size_t maxncpy, short version
const char *prefix = v_prefix ? "v" : "";
if (include_subversion && subversion > 0) {
BLI_snprintf(version_str, maxncpy, "%s%d.%02d.%d", prefix, version / 100, subversion % 100, subversion);
BLI_snprintf(version_str, maxncpy, "%s%d.%02d.%d", prefix, version / 100, version % 100, subversion);
}
else {
BLI_snprintf(version_str, maxncpy, "%s%d.%02d", prefix, version / 100, version % 100);