I have fixed it. when i want to use multi materials, i just initial mesh with one material, and before excute ‘addgroup’ there lack of ‘cleargroup’, so i change one material to multi materail when init mesh or execute ‘cleargroup’ before ‘addgroup’, it’s all work.
thanks everyone!