rm thread unsafe version of addMaterial ,move const_cast to actual call needing it
rm thread unsafe version of addMaterial ,move const_cast to actual call needing it
rm thread unsafe version of addMaterial ,move const_cast to actual call needing it