Page MenuHome

Proposed fix for T66011

Authored by Antonio Vazquez (antoniov) on Jul 12 2019, 11:52 PM.



Fx T66011: Transformed objects break sculpt tools

The Pinch, Push, Twist and Clone were not using the object transformation to compute point changes, so the point was way off of the right place.

Diff Detail

Event Timeline

Please review before committing to master the fix.

It would be good if there was a better naming distinction between "point" / "position" and "direction vector" / "delta" types vectors, which require different math. Not saying the code has to be refactored for this now, but something to keep in mind for the future.


The reason for this line of code is unclear, why would the object translation affect a direction vector?

About refactoring, yes I have seen old names that are not clear and need a better naming.


The reason for that is the point is transformed using the delta, so if the original object is rotated, the destination point must be rotated too.

I did not created this operator (it's from old 2.73 +/-) and I tested and it was necessary to make it works when clone rotate objects.

This is ok to commit for 2.80.

This revision is now accepted and ready to land.Jul 16 2019, 5:15 PM