You name the material "%-", not the object.

Object: %glass
material: "Glass%-"