Bug fix for "Constant Point Size" not working if PathCreator object isn't at World Zero. #103
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.
In PathEditor.cs, the variables
handleRadius
inProcessBezierPathInput
, andanchor/controlHandleSize
inDrawHandle
, previously referenced the raw bezierPath position information based on which index was requested, rather than the transformed position--this is curious, considering the transform position is calculated after handleRadius and before anchor/controlHandleSize are set.As a result, Constant Point Size failed to display correctly if the GameObject for PathCreator was ever anywhere but [0,0,0], causing strange deformations in the point's sizes when moving/rotating the camera. Viewable below.
2021-05-25.23-43-43.mp4
From my testing, this doesn't seem to introduce any new issues, and as seen in the below video, the issue appears to be corrected.
2021-05-25.23-44-01.mp4