diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-10-26 13:33:36 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-10-27 10:56:58 +0300 |
commit | b94447a298146f273c848541a3122afea001ba39 (patch) | |
tree | 9e23901edd051a7af445484d07aa4213a4dcef51 /source/blender/editors/include | |
parent | 16e1b18dd8899dbc47e971b5ca3deb7652ae954a (diff) |
Fix T92494: Node Editor dot grid not respecting display resolution scale
This seems wrong and was especially noticeable since transform snapping
does account for it (which was reported in T92494).
Now divide the `DotGridLevelInfo` `step_factor` by the default of 20 for
`U.widget_unit` and scale it later by the actual interface scale.
note: when zooming, this will still always snap to the smallest dot
level (not sure, with a bit more work it could be possible to only snap
to the lowest visible level after fading?)
Maniphest Tasks: T92494
Differential Revision: https://developer.blender.org/D13002
Diffstat (limited to 'source/blender/editors/include')
0 files changed, 0 insertions, 0 deletions