Fix Box Warp to treat multiple shapes as unified object Box warp function combined subpath #3555
+49
−64
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #3551
The function before makes the shape overlap on each other.
Because earlier we found the minimum and then make a new rectangle(size of only one shape) which makes the both shapes combined in a single small rectangle size of only one shape
The fix is as mentioned in the issue itself
So the solution to it is to get the minimum left top and the max bottom right corner.Then warping all the shapes into that single big rectangle size of the all shapes. It makes the distance bwteen 2 shapes constant.
Before

After

Shapes maintain their relative positions when warped together.