Page MenuHome

Fix T86796: moving the cursor in the UV Editor does not take aspect into account
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Mar 25 2021, 1:29 PM.

Details

Summary

UV coords are scaled by aspects (see UVsToTransData). This also applies
for the Cursor in the UV Editor which also means that for display and
when the cursor coords are flushed (new 'recalcData_cursor_image' was
added for this), these need to be converted each time.

This flags moving the cursor in the Image Editor T_2D_EDIT with the
following benefits:

  • dissallowing e.g. Z constraints
  • improving the header display
    • it should not use scene units
    • now respects if we are moving in pixel coords or not

Diff Detail

Repository
rB Blender
Branch
T86796 (branched from master)
Build Status
Buildable 13719
Build 13719: arc lint + arc unit

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Mar 25 2021, 1:29 PM
Philipp Oeser (lichtwerk) created this revision.
Philipp Oeser (lichtwerk) added projects: Restricted Project, Modeling.Mar 25 2021, 1:30 PM
Campbell Barton (campbellbarton) added inline comments.
source/blender/editors/transform/transform_mode_translate.c
64

This doesn't seem correct, unit system shouldn't apply to images?

This revision is now accepted and ready to land.Mar 25 2021, 2:13 PM
source/blender/editors/transform/transform_mode_translate.c
64

Edit, if this is needed - there should be an explanation why image editor uses scene units.

flag moving image editor cursor T_2D_EDIT