fix for [#6342] Collada 1.4 import (of perhaps corrupt collada files) leads to a complete crash of Blender 2.43 under Windows XP

NMesh wasnt checking 16max material limit, also made collada import work with the user scripts dir.
This commit is contained in:
Campbell Barton 2008-04-06 20:13:14 +00:00
parent 34771ef405
commit e4d25da698

@ -2730,6 +2730,7 @@ Material **nmesh_updateMaterials( BPy_NMesh * nmesh )
}
if( len > 0 ) {
if (len>16) len = 16;
matlist = EXPP_newMaterialList_fromPyList( nmesh->materials );
EXPP_incr_mats_us( matlist, len );