Fix bug in previous patch: setMaterialX wouldn't make any effective
change
Authored by: klaussfreire 2014-03-05
Parent: [r13671]
Child: [r13673]