Hi,
The macro is adjusting the padding based on whether the angle of the corner is > or < 90 degrees, which should work. I can't reproduce the issue here, but I have attached a version where I have increased the test condition to 180 degrees so that the corners are much more tolerant.
I hope that helps out, but please let me know if not.
All the best,
Paul