Update WritableMaterial.cpp