Campbell Barton
8c4ff84ed6
UI: hide sculpt panels from toolbar
...
These are already available from the topbar.
2018-04-29 16:22:40 +02:00
Campbell Barton
3b785be8f4
Cleanup: warning, use STRNCPY macro
2018-04-29 14:48:30 +02:00
Campbell Barton
76282a986d
UI: initial dynamically generated sculpt tools
...
Lots more work needed, this just lists sculpt tools in the toolbar.
2018-04-29 14:31:00 +02:00
Campbell Barton
6e76a35f07
Tool System: support data-blocks in tools
...
Needed so tools can set the active brush.
2018-04-29 14:30:09 +02:00
Campbell Barton
f4ba7667dc
UI: support tool generators (no visible change)
...
This allows toolbar definitions to dynamically generate tools,
needed for generating a tool list from brushes for eg.
2018-04-29 12:28:21 +02:00
Brecht Van Lommel
e017876f78
3D View: add initial view.shading and view.overlay in RNA.
...
These are mostly empty still, many properties need to be renamed and moved there.
2018-04-29 09:55:47 +02:00
Brecht Van Lommel
03957b9487
3D View: move shading and overlay settings into popovers.
...
* This is just moving buttons to get a bit closer to the intended design,
better naming and layout is needed.
* Popovers currently work best when the 3D view header is at the top, with
the most important settings nearest to the mouse. Open design question is
if we should flip (part of) the buttons if header is at the bottom.
* Another question is if selecintg a shading mode enum should immediately
close the popover since those are changed often, unlike the other settings
for which it seems more convenient to keep the popover open.
2018-04-29 09:22:00 +02:00
Brecht Van Lommel
97c7db168d
UI: auto open adjacent pulldown and popover buttons.
2018-04-29 09:18:54 +02:00
Brecht Van Lommel
fc32bd729c
UI: don't flip contents of popovers, avoid closing when size changes.
2018-04-29 09:18:54 +02:00
Brecht Van Lommel
cb53c9bc7b
Fix use of removed Blender Internal properties.
2018-04-29 09:18:54 +02:00
Campbell Barton
a56d6e467b
UI: show popover arrow directly under the button
...
A visual hint but looks broken when its not pointing to the button.
2018-04-29 09:16:32 +02:00
Brecht Van Lommel
ca7964c24b
UI: fix toolbar not snapping properly with system DPI and display scale.
2018-04-28 20:50:47 +02:00
Brecht Van Lommel
b5d3fcc9f5
Python/UI: add more convenient API for drawing based on DPI.
...
system.ui_scale: size multiplier to use when drawing custom UI elements.
system.ui_line_width: suggested line thickness and point size in pixels.
2018-04-28 20:49:46 +02:00
Campbell Barton
e87dd9aa00
Edit Mesh: loop-cut multi-object support
2018-04-28 18:26:44 +02:00
Dalai Felinto
922ea41395
UI: Number Slider - treat percentage as a special case
...
This is to address things like a percentage slider with a fixed soft mininum.
For example, the render resolution ranges from 1% to 100% and it is really
strange to have the slider showing nothing filled when the ui shows 1%.
2018-04-28 16:55:17 +02:00
Dalai Felinto
9b0ea92be7
UI: Number slider uniform filling
...
Now we always fill the slider with a vertical boundary. A bit hard to explain,
but very easy to see the difference.
I split the widget in three parts and used fragment shader discard to remove the
undesired bits. That means all the widget program is doing a bit extra
calculation.
Reviewers: fclem
Subscribers: billreynish
Differential Revision: https://developer.blender.org/D3186
2018-04-28 16:54:57 +02:00
Dalai Felinto
c06bfe9d09
UI: Remove hardcoded 11 uniform parameters
...
Using a define makes it easy to increase this later.
2018-04-28 16:33:15 +02:00
Dalai Felinto
c6fccbf842
UI: Remove deprecated drawing code
2018-04-28 16:33:15 +02:00
Brecht Van Lommel
54aa834b7d
Cleanup: fix compiler warnings on macOS / clang.
2018-04-28 16:28:19 +02:00
Brecht Van Lommel
bf75b24818
UI: fix incorrect scaling of manipulator widgets with DPI.
...
U.ui_scale is the setting from the user preferences and should never be used
for drawing. UI_DPI_FAC is the final scale after DPI from the operating system
is taken into account.
2018-04-28 16:16:04 +02:00
Brecht Van Lommel
61759f3b55
Cleanup: remove code for removed Blender Internal properties.
2018-04-28 16:15:42 +02:00
Campbell Barton
b6e66a66c2
Fix number button sides exiting continuous grab
2018-04-28 15:38:33 +02:00
Campbell Barton
d5a766a9ed
Merge branch 'master' into blender2.8
2018-04-28 14:49:08 +02:00
Campbell Barton
60f4cb24da
Fix vertex paint alpha brush setting color black
2018-04-28 14:47:53 +02:00
Campbell Barton
ffda096413
Cleanup: meaningful names for color blending
2018-04-28 14:45:10 +02:00
Campbell Barton
a74097dc19
UI: Add icon color saturation preference
...
Toolbar icon saturation can now be set from the preferences,
(use 0.4 by default).
2018-04-28 13:34:52 +02:00
Campbell Barton
69ca12c45c
Revert "UI: don't highlight number button while dragging"
...
This reverts commit bb513b173e .
Broke click events.
2018-04-28 12:20:38 +02:00
Campbell Barton
e1417c665d
UI: split toolbar layout from button creation
...
Having single & multi-column checks inline were becoming unmanageable.
Use a generator to define the layout,
allows for easily adding different layouts in the future.
2018-04-28 11:42:53 +02:00
Brecht Van Lommel
a14005c070
UI: fix popover menus not refreshing when changing settings.
2018-04-28 10:42:58 +02:00
Brecht Van Lommel
a593cc046c
UI: put active tool buttons in center topbar region.
2018-04-28 10:42:58 +02:00
Campbell Barton
128b7ddd83
Fix multi-editmode memory leak
...
Previous commit only removed return's.
2018-04-28 09:34:48 +02:00
Campbell Barton
159a7e8b38
UI: replace transform hand icon w/ 4 arrows
...
The hand doesn't have a hotspot which you might want using manipulators
2018-04-28 09:14:02 +02:00
Campbell Barton
617534327a
Cleanup: style, duplicate includes
2018-04-28 09:02:22 +02:00
Campbell Barton
cfa1700792
UI: add loopcut & edge offset tools
...
Also fix minor layout bug.
2018-04-27 23:08:25 +02:00
Campbell Barton
c42a47d177
UI: add new transform tool that enables all widgets
...
Also add bevel tool.
2018-04-27 22:49:52 +02:00
Campbell Barton
bb513b173e
UI: don't highlight number button while dragging
2018-04-27 22:25:54 +02:00
Campbell Barton
e97ab28a03
Edit Mesh: skip unselected meshes w/ fill holes
2018-04-27 21:52:08 +02:00
Thomas Beck
69b95b45f4
Edit Mesh: multi-object support for 'Fill Holes'
2018-04-27 21:22:21 +02:00
Campbell Barton
e724238457
Tool System: use release_confirm for extrude
2018-04-27 20:43:41 +02:00
Campbell Barton
c4a24a7f5d
Tool System: inset tool now completes on release
2018-04-27 20:38:29 +02:00
Brecht Van Lommel
c0c9eb7fe2
Fix quad view region dividing lines not drawing after recent changes.
2018-04-27 20:33:58 +02:00
Campbell Barton
0adabe33bd
UI: respect separators for row layout
2018-04-27 20:03:43 +02:00
Campbell Barton
970cf6f765
UI: use the layouts scale_x to scale icon width
2018-04-27 20:03:43 +02:00
Dalai Felinto
a6fb54f236
UI: Set cursor to X_MOV when editing number button middle area
...
Reviewers: campbellbarton, brecht
Differential Revision: https://developer.blender.org/D3184
2018-04-27 19:38:18 +02:00
Campbell Barton
782240636c
UI: use new extrude icon and correct keymap
2018-04-27 19:16:00 +02:00
Campbell Barton
fd68bdf7f9
UI: updated icons from @billreynish
...
- black outlines (better readability).
- add bone roll.
- add extrude to cursor.
2018-04-27 19:02:44 +02:00
Germano
a55016d5ef
Draw Edit Curve Overlay: Fix the offset direction of the contour of selected handles
2018-04-27 14:00:22 -03:00
Brecht Van Lommel
9cc9db87bb
Fix missing action zones and emboss in the 3D viewport.
...
Not really happy with the fix, but it works. With the new window draw method
we are no longer storing the 3D viewport in 4 buffers, by having the GPU
viewport function directly as the 3rd buffer. This means we need to draw the
action zones into it, and so we need to keep the framebuffer bound a little
longer.
2018-04-27 18:52:19 +02:00
Campbell Barton
351d782286
UI: disable 3 column toolbars
...
They conflict a little with showing a narrow toolbar w/ text.
2018-04-27 18:20:48 +02:00
Campbell Barton
eb4c60124c
UI: multi-column toolbar support
2018-04-27 18:02:45 +02:00