The legality and morality really all depend on circumstances, i.e. on how much work was put into the redraft, is the outcome clearly different, or was your figure a "quote" of the figure in the earlier study. Also, who wrote the earlier study?
Here is a scenario. Your prof or their group writes a study with the figure and looses the original pdf file. You publish this study figure in your thesis by reconstructing it, maybe under guidance of your prof. Your figure and the study figure are difficult to tell apart. Your prof or someone else when writing the paper look for the study figure and finds your version. Nothing wrong in my opinion for using it legally (they still have the copyright to derivatives of their original work) and ethically (they were not able to tell that you contributed to the figure).
Here is another scenario. You truly embellish the figure from the earlier study so that it has changed character and you now hold copyright for your substantial changes, as maybe the only intellectual contribution of the original figure are the data. The prof or the person who wrote the section likes your version, is afraid that you would not want to give permission for use, does not know how to cite an embargoed thesis, forgets to ask you, or just assumes that you are fine with it. Then your rights were violated. Even then, what can you gain by asserting your rights? There is not much you can claim. You cannot become a co-author because your contribution is too low and the paper has already been published. You did not suffer any material damage. You benefitted from the work in the group (you got a thesis accepted so you got a degree, I assume) and some give and take in a group is expected. You might have been owned an acknowledgment: "We thank rowrow for taking the figure from X and colleagues [x] and redrawing it." I could live without that.
To long to read: Assert the facts first, e.g. was it intentional, and was your "redraft" different enough. Even if this would have been bad, you missed out on a small note of thanks. These are pretty worthless in academia and completely worthless in industry.