Fix needTangents not being set for cached/shared materials