Remove warning for skinned mesh shader fallback

The shader will be unused anyway if there is no armature
This commit is contained in:
Benau 2018-08-29 09:32:34 +08:00
parent 03700acd53
commit 4a29e46817

View File

@ -484,11 +484,7 @@ void SPMeshBuffer::setSTKMaterial(Material* m)
m_shaders[1] = SPShaderManager::get()->getSPShader(skinned_shader_name); m_shaders[1] = SPShaderManager::get()->getSPShader(skinned_shader_name);
if (!m_shaders[1]) if (!m_shaders[1])
{
Log::warn("SPMeshBuffer", "%s shader is missing, "
"fallback to solid_skinned", skinned_shader_name.c_str());
m_shaders[1] = SPShaderManager::get()->getSPShader("solid_skinned"); m_shaders[1] = SPShaderManager::get()->getSPShader("solid_skinned");
}
} // setSTKMaterial } // setSTKMaterial
} }