Merged changes in the trunk up to revision 50829.
Conflicts resolved: source/blender/blenloader/intern/readfile.c source/blender/render/intern/source/convertblender.c source/blender/render/intern/source/pipeline.c Also addressed code inconsistency due to changes in the trunk revision 50628 (color management with OCIO) and 50806 (UV project material). OCIO-related changes are marked OCIO_TODO as in some other files modified in revision 50628.
This commit is contained in:
@@ -173,7 +173,7 @@ const STR_String& RAS_MeshObject::GetMaterialName(unsigned int matid)
|
||||
|
||||
RAS_MeshMaterial* RAS_MeshObject::GetMeshMaterial(unsigned int matid)
|
||||
{
|
||||
if (m_materials.size() > 0 && (matid < m_materials.size()))
|
||||
if ((m_materials.empty() == false) && (matid < m_materials.size()))
|
||||
{
|
||||
list<RAS_MeshMaterial>::iterator it = m_materials.begin();
|
||||
while (matid--) ++it;
|
||||
|
||||
Reference in New Issue
Block a user