Page MenuHome

Fix wrong use of 'U.pixelsize'
Needs ReviewPublic

Authored by Yevgeny Makarov (jenkm) on Nov 19 2020, 1:56 PM.

Details

Reviewers
None
Group Reviewers
User Interface
Summary

Fix for wrong use of U.pixelsize.

The "Line Width" (U.pixelsize) should not affect:

  • tooltip width
  • submenu arrow icon width
  • dynamic-topology detail size
  • zoom operator delta
  • compositor backdrop manipulator size
  • mini axis size
  • navigate icon offset from mini axis
  • gradient size (preview the active side of the line gestures)
  • cursor position value (from other windows)

Diff Detail

Repository
rB Blender

Event Timeline

Yevgeny Makarov (jenkm) requested review of this revision.Nov 19 2020, 1:56 PM
Yevgeny Makarov (jenkm) created this revision.
Brecht Van Lommel (brecht) added inline comments.
source/blender/blenkernel/intern/scene.c
2927

Don't change this one.

Yevgeny Makarov (jenkm) marked an inline comment as done.
Yevgeny Makarov (jenkm) planned changes to this revision.Jan 2 2021, 9:59 PM
Yevgeny Makarov (jenkm) edited the summary of this revision. (Show Details)

I can only spot one thing that might need double-checking. node_composit_backdrop_viewer looks to be drawing a diagonal cross shape using GPU_PRIM_LINES, so if you increase line-width (separately from scale) you might need to increase the cross size to keep proportions and avoid making one that is too fat and short.

I don't quite understand the purpose of this cross, but changing (depending on Line Width) its size twice definitely looks wrong. rB29a7ad8b1a76


Btw, there are many more places that need to be rechecked, I excluded them from this patch for simplicity:
snap distance, select dist, gizmo hotspot, etc. Of course, they can vary depending on the Line Width, but not twice as much.