[Engine] Copies layer data correctly.