Fix #105363: Frame nodes can act wrong in transform system #105400

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:105363 into blender-v3.5-release 2023-03-17 12:42:16 +01:00

1 Commits

Author SHA1 Message Date
Philipp Oeser 72822b60bc Fix #105363: Frame nodes can act wrong in transform system
When multiple nodes (Frame nodes included in the selection) are scaled/
rotated, the TransData location and center can get "wrong" due to the
fact that Frame nodes dont only use `locx`/`locy` for their
representation while drawing, but also `offsetx`/`offsety`.

So in order to use the "real" top-left corner in the transform system,
we have to respect `offsetx`/`offsety` when creating/flushing transform
data.

In addition to the file in the report, this patch was also tested to work
well with nested Frame nodes.
2023-03-03 12:19:45 +01:00