Ridley5 opened this issue on Jul 26, 2010 · 1724 posts
nruddock posted Sun, 01 August 2010 at 2:20 PM
Quote - Here is a short and fast test if a geometry (actor/prop) needs more than just one material:
geom=actor.Geometry()
polys=geom.Polygons()
if [p for p in polys if p.MaterialIndex() != polys[0].MaterialIndex()] :
print "more than one material in this geometry found"
Simpler would be to use geom.NumMaterials() > 1 as the test, no need to iterate over the polygons.