Page MenuHome

Curves: Support set origin and apply transform operators
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Apr 2 2022, 6:30 AM.

Details

Summary

Add support for the Curves object to the "Set Origin" and "Apply Object
Tansform" operators. Also change the automatic handle calculation to
avoid adding Bezier attributes if they don't need to be added.

The combined use of around and and centermode in this area
is weird, but I tried to handle it like the OB_MESH case.

Diff Detail

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Apr 2 2022, 6:30 AM
Hans Goudey (HooglyBoogly) created this revision.
Jacques Lucke (JacquesLucke) added inline comments.
source/blender/editors/object/object_transform.cc
1607

This case and the case below might need some checks to protect against the case when the curves object is empty, unless that is handled at a higher level.

This revision is now accepted and ready to land.Apr 3 2022, 10:11 AM
Hans Goudey (HooglyBoogly) marked an inline comment as done.Apr 3 2022, 7:52 PM