Material doesn't render during Sweep animation?

I was looking at my render and found it odd that the material didn't show and it was just white, so I fast-forwarded to the end but it seemed fine. Then I saw that it only started rendering the material after its animation on the Sweep property had ended. Does anyone know how to fix this?

https://preview.redd.it/h24hbiuevvfc1.png?width=1586&format=png&auto=webp&s=8a1def57d5c4aa9ee11b289898770aafb6edb15c

https://preview.redd.it/b70qj7rgvvfc1.png?width=1604&format=png&auto=webp&s=21362cb68f8396434ecbfbd60def75b16560b529

https://preview.redd.it/4otot4ohvvfc1.png?width=1598&format=png&auto=webp&s=46b709024c6ff09097b0a313ec94146f1fafd0c6