[DF-3978] fix for saving layer materials