material auto assignment and texture update