No Constant Properties exported for Optical surfaces

If I look at TGDMLWrite.cxx, in XMLNodePointer_t TGDMLWrite::CreateOpticalSurfaceN(TGeoOpticalSurface *geoSurf), there is no geoSurf->GetConstProperties() part which means no Constant properties are written to the gdml.
(An equivalent with GetConstProperties() exists in XMLNodePointer_t TGDMLWrite::CreateMaterialN(TGeoMaterial *material, TString mname))
Is this a bug or am I missing something?

ROOT Version: master
Platform: all
Compiler: all


Created a PR for this:

I guess @agheata will have a look.

Indeed, it seems that this was overlooked. Thanks for spotting this and for the fix!