fix cmake without vc redist. remove double to float warning.
This commit is contained in:
@@ -1581,7 +1581,6 @@ if (WINDOWS)
|
||||
|
||||
add_custom_target(copy_w_viewer_manifest ALL DEPENDS ${CMAKE_CFG_INTDIR}/copy_touched.bat)
|
||||
|
||||
|
||||
if(EXISTS ${VISUAL_STUDIO_REDISTRIBUTABLE_PATH})
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/redist
|
||||
@@ -1600,10 +1599,12 @@ if (WINDOWS)
|
||||
)
|
||||
|
||||
add_custom_target(copy_w_redist ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/redist/${VISUAL_STUDIO_REDISTRIBUTABLE_NAME})
|
||||
|
||||
add_dependencies(${VIEWER_BINARY_NAME} copy_w_redist)
|
||||
endif()
|
||||
|
||||
|
||||
add_dependencies(${VIEWER_BINARY_NAME} stage_third_party_libs llcommon copy_w_viewer_manifest copy_w_redist)
|
||||
add_dependencies(${VIEWER_BINARY_NAME} stage_third_party_libs llcommon copy_w_viewer_manifest)
|
||||
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts)
|
||||
add_dependencies(${VIEWER_BINARY_NAME} copy_win_scripts)
|
||||
|
||||
@@ -1619,7 +1619,7 @@ void LLModelPreview::rebuildUploadData()
|
||||
{
|
||||
LLQuaternion bind_rot = LLSkinningUtil::getUnscaledQuaternion(high_lod_model->mSkinInfo.mBindShapeMatrix);
|
||||
LLQuaternion identity;
|
||||
if (!bind_rot.isEqualEps(identity,0.01))
|
||||
if (!bind_rot.isEqualEps(identity,0.01f))
|
||||
{
|
||||
LL_WARNS() << "non-identity bind shape rot. mat is " << high_lod_model->mSkinInfo.mBindShapeMatrix
|
||||
<< " bind_rot " << bind_rot << LL_ENDL;
|
||||
|
||||
Reference in New Issue
Block a user