fix for invalid empty string check in uniquename callback.

This commit is contained in:
Campbell Barton
2011-03-03 17:23:59 +00:00
parent caf84b49f6
commit 3326c0ca75
2 changed files with 6 additions and 6 deletions

View File

@@ -358,8 +358,8 @@ macro(get_blender_version)
message(FATAL_ERROR "Version parsing failed for BLENDER_VERSION_CYCLE")
endif()
MATH(EXPR BLENDER_VERSION_MAJOR "${_out_version} / 100")
MATH(EXPR BLENDER_VERSION_MINOR "${_out_version} % 100")
math(EXPR BLENDER_VERSION_MAJOR "${_out_version} / 100")
math(EXPR BLENDER_VERSION_MINOR "${_out_version} % 100")
set(BLENDER_VERSION "${BLENDER_VERSION_MAJOR}.${BLENDER_VERSION_MINOR}")
set(BLENDER_SUBVERSION ${_out_subversion})
@@ -372,7 +372,7 @@ macro(get_blender_version)
else()
set(_char_ls a b c d e f g h i j k l m n o p q r s t u v w q y z)
list(FIND _char_ls ${BLENDER_VERSION_CHAR} _out_version_char_index)
MATH(EXPR BLENDER_VERSION_CHAR_INDEX "${_out_version_char_index} + 1")
math(EXPR BLENDER_VERSION_CHAR_INDEX "${_out_version_char_index} + 1")
unset(_char_ls)
unset(_out_version_char_index)
endif()