Age | Commit message (Collapse) | Author |
|
This change is yet to be followed by a more comprehensive design
proposal including:
* How to differentiate the modes apart.
* More clear definition of tools and the rules for their components (gizmo, cursor).
* Selection as a non-tool vs drag option.
This can be revisited for 2.90 with more time. For now the UI team
agrees to revert this.
--
This reverts commit 4aa703aa1430bc53f19e2cc7182e70db1a916f13.
|
|
This new shader is able to emulate smooth wide lines drawing using a
geometry shader.
This shader needs viewportSize and lineWidth uniforms to be set.
There is multiple variants to replace the usage of wide lines for most
shaders.
This patch only fix the gizmo_types files and the navigation gizmo.
Other areas could be fixed afterward, I just limited the patch size.
Fix T57570.
Reviewed By: billreynish
Differential Revision: https://developer.blender.org/D7487
|
|
|
|
|
|
Normal UI widget and 3D navigation gizmo where clipping at high DPI.
|
|
|
|
Changes the default View3D mouse cursor to the OS-supplied arrow pointer. Subsequent cursor changes will now be set per-tool instead.
Differential Revision: https://developer.blender.org/D6485
Reviewed by Campbell Barton
|
|
Happened when used in 2D view.
|
|
There was a mix of old and new constants. Now have one list of WM_CURSOR_*
cursor types, using GHOST standard cursors when available and otherwise falling
back to our custom cursors.
Ref D5197
|
|
|
|
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
|
|
Without this they can blend in visually with the backdrop of the gizmo.
|
|
Using white with low alpha made it hard to use on a white background.
Since the axes themselves highlight to white.
|
|
While \file doesn't need an argument, it can't have another doxy
command after it.
|
|
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
|
|
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
|
|
|
|
Prevents clang-format wrapping text before comments.
|
|
|
|
Show occluded axis highlight on top when pointing away.
|
|
Axis aligned views now show both small/large handles,
this makes it possible to well if the view is in front or behind.
|
|
Previously the positive axis was always brighter,
now use bright colors which face towards the view.
|
|
When view aligned, the near axis was hidden,
making it seem as if the opposite axis was at the front.
|
|
Also use struct for storing extra args.
|
|
|
|
Using low alpha meant it wasn't possible to see which was in-front.
|
|
|
|
|
|
This now matches original design more closely, see: T54723.
|
|
Much easier to read against the usually brighter axes colors.
|
|
- Only show axis backdrop when hovering.
- Move closer to the screen corner.
|
|
Was taking an event, when only the region coords are needed.
|
|
While only the positive axis is shown,
account for an exception when axis aligned.
|
|
|
|
Thanks to @sergey for review
|
|
|
|
Simplify the default navigation gizmo.
See: T54723
|
|
|
|
Edit doxy files and header guards only.
|