Page MenuHome

Fix T72621: Transform object origin support for grease-pencil
ClosedPublic

Authored by Sebastian Parborg (zeddb) on Jul 15 2020, 6:18 PM.

Details

Summary

Added support for transforming only origins with greasepencil objects.

The new functions is based on BKE_gpencil_transform. That is why there is FIXME statements in there.

Hopefully I didn't miss anything. It seems to work nicely when I did my tests.

Diff Detail

Event Timeline

I have tested and works, but not sure why you need the pressure. This variable is not related to the scale of the object.

I have tested and works, but not sure why you need the pressure. This variable is not related to the scale of the object.

Are you sure?
If I don't do this and scale the object with "only origins" on, the line thickness will shrink/grow if I don't adjust the pressure.

This looks good to me, assuming the pressure is used for radius this makes sense, if it's used for opacity it wont usefully.

@Sebastian Parborg (zeddb) Ah, right, you are scaling the object and the stroke thickness.

This revision is now accepted and ready to land.Jul 18 2020, 4:13 PM