It sounds like the fundamental problem here is the lack of recognition or praise for the original work you did. It bruised your ego, and as a result it has affected your motivation. Sometimes a manager can make a poorly worded comment in the middle of a fluid discussion, but these words will affect the employee for a long time! That is bad for you, and for the company.
Although it happened last year, if it is still an issue for you now, then I think you may want to address it directly. You could request a private meeting with one of the managers, and explain to them how you feel.
What exactly do you want from them now? I might ask some questions along these lines:
I recall I was taken off the project because my work was not good enough. That made me feel undervalued, because I had worked very hard on the project. Was that the real reason, or am I remembering incorrectly?
If so, could you please explain what I was doing wrong, so that I can improve in future?
Do you trust me more this year? Have I improved since then? Are there specific areas I should focus on now?
If you find this kind of one-on-one conversation does not usually go how you would like, then you could write an email instead, so the manager will have time to consider it more fully before replying.
It might be that the management had quite valid business reasons to take the project away from you last year, which should not be taken too personally. It is possible that your work was good, but that an extra level of quality was required to finish the project off. (This can sometimes be the case regarding subtle concerns like the security of a system, or accessibility, or branding...) Or it might simply be that they thought resources would be bestmore efficient if they were arranged differently at that time. Either way, I think it's reasonable to ask what the specific reasons were, so that you are not left wondering, and may learn something to improve for the future.