Merge branch 'master' into findDegeneratesOptimization
commit
db7e594221
|
@ -750,12 +750,17 @@ void LWSImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
|
||||||
}
|
}
|
||||||
// 'LightIntensity': set intensity of currently active light
|
// 'LightIntensity': set intensity of currently active light
|
||||||
else if ((*it).tokens[0] == "LightIntensity" || (*it).tokens[0] == "LgtIntensity") {
|
else if ((*it).tokens[0] == "LightIntensity" || (*it).tokens[0] == "LgtIntensity") {
|
||||||
if (nodes.empty() || nodes.back().type != LWS::NodeDesc::LIGHT)
|
if (nodes.empty() || nodes.back().type != LWS::NodeDesc::LIGHT) {
|
||||||
ASSIMP_LOG_ERROR("LWS: Unexpected keyword: \'LightIntensity\'");
|
ASSIMP_LOG_ERROR("LWS: Unexpected keyword: \'LightIntensity\'");
|
||||||
|
} else {
|
||||||
else
|
const std::string env = "(envelope)";
|
||||||
fast_atoreal_move<float>(c, nodes.back().lightIntensity);
|
if (0 == strncmp(c, env.c_str(), env.size())) {
|
||||||
|
ASSIMP_LOG_ERROR("LWS: envelopes for LightIntensity not supported, set to 1.0");
|
||||||
|
nodes.back().lightIntensity = (ai_real)1.0;
|
||||||
|
} else {
|
||||||
|
fast_atoreal_move<float>(c, nodes.back().lightIntensity);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 'LightType': set type of currently active light
|
// 'LightType': set type of currently active light
|
||||||
else if ((*it).tokens[0] == "LightType") {
|
else if ((*it).tokens[0] == "LightType") {
|
||||||
|
|
|
@ -232,6 +232,8 @@ SET_PROPERTY( TARGET assimp PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX} )
|
||||||
|
|
||||||
IF( WIN32 )
|
IF( WIN32 )
|
||||||
SET( platform_libs )
|
SET( platform_libs )
|
||||||
|
ELSEIF(ANDROID)
|
||||||
|
SET( platform_libs )
|
||||||
ELSE()
|
ELSE()
|
||||||
SET( platform_libs pthread )
|
SET( platform_libs pthread )
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
Loading…
Reference in New Issue