Rename isMaterialInstance to isMaterial, make type optional. Use isMaterial throughout code. Lodestone