Campbell Barton
50e28092d3
Cleanup: style
2018-05-07 21:40:51 +02:00
Campbell Barton
466125f3d6
EditMesh: initial extrude manipulator
...
This manipulator is a test for mixing do/redo,
there are still some glitches that need sorting out in
transform & the undo stack.
2018-05-06 10:14:20 +02:00
Campbell Barton
3f4a81232a
UI: expose radial gradient as option
...
Was a separate tool, use option so we can extend more easily.
2018-05-01 12:48:35 +02:00
Campbell Barton
f38fbc9bed
UI: add weight paint sample tools
...
Also use unified weight.
2018-05-01 12:20:53 +02:00
Campbell Barton
b93a76fe75
Add missing tools to vertex paint
2018-04-30 21:58:35 +02:00
Campbell Barton
a44d5b59d3
UI: order edit-mesh tools
...
See T54885
2018-04-30 20:40:36 +02:00
Campbell Barton
3b9554ce9d
UI: share common paint panels between all modes
2018-04-30 16:59:16 +02:00
Campbell Barton
7720525873
UI: add texture paint brushes to toolbar
2018-04-30 16:43:36 +02:00
Campbell Barton
9aef2d961d
UI: add weight paint brushes to toolbar
2018-04-30 16:08:15 +02:00
Campbell Barton
d9f395ac39
UI: add vertex paint tools
...
Generalize logic to show the paintbrush as a tool so
different paint modes can use it.
2018-04-30 15:23:04 +02:00
Campbell Barton
005711ffef
Fix sculpt ToolDef generation
...
With non-default sculpt brushes, tool generation could fail.
2018-04-30 13:46:01 +02:00
Campbell Barton
ea2146c3e1
Correct error in toolbar update
2018-04-30 12:46:23 +02:00
Campbell Barton
f4697b392d
Tool System: change internal definitions (again)
...
Was using classes to define tools, however this makes it awkward to
dynamically generate them (we can do it, but its not very "Pythonic").
Move to a named tuple.
2018-04-30 12:14:46 +02:00
Campbell Barton
60ce3275c1
UI: use sculpt icons in the toolbar
2018-04-29 17:01:10 +02:00
Campbell Barton
695326eb8f
UI: remove toolbar separator between categories
...
Made cursor split from selection tools, giving ugly 2 column layout.
2018-04-29 16:49:24 +02:00
Campbell Barton
65d78f4695
UI: group sculpt brushes in the toolbar
...
All sculpt brushes are accessible from the toolbar, grouped by type
to keep the toolbar a fixed size.
2018-04-29 16:36:31 +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
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
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
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
Campbell Barton
782240636c
UI: use new extrude icon and correct keymap
2018-04-27 19:16:00 +02:00
Campbell Barton
eb4c60124c
UI: multi-column toolbar support
2018-04-27 18:02:45 +02:00
Campbell Barton
85ea14df2f
UI: support for tool settings in the top-bar
...
This uses the operators last used properties
to store settings to use on the next execution.
2018-04-27 14:17:12 +02:00
Campbell Barton
9504652687
UI: move tool definitions to classes
...
Originally it was nice to have a small list of definitions
with tools inline.
However we need to be able to define drawing functions for tools
which Python can't easily inline.
Use function for keymap definition,
support creating a function from a tuple as well
(handy for simple key-maps).
2018-04-27 13:55:04 +02:00
Campbell Barton
05c9ddb2d6
UI: correct icon
2018-04-26 15:02:50 +02:00
Campbell Barton
b98311f847
Cleanup: avoid direct access to private class
2018-04-26 14:55:46 +02:00
Campbell Barton
37ca6ef7d8
UI: use dict for tool definitions
...
Using tuple was becoming too cryptic - new settings needed to be added
last and the purpose of each wasn't very clear.
2018-04-26 07:31:39 +02:00
Campbell Barton
4d6cdb8b89
UI: add extrude icon
2018-04-25 09:21:49 +02:00
Campbell Barton
00d4e99955
UI: move mesh-weights from panels to menus
...
Also de-duplicate edit/object mode menus.
2018-04-24 17:04:43 +02:00
Campbell Barton
a59bf99f1d
UI: remove toolbar header
2018-04-24 16:04:07 +02:00
Campbell Barton
9c5025d67d
UI: use new icons in toolbar
2018-04-24 15:32:45 +02:00
Campbell Barton
3581b997d4
UI: use icons for the toolbar
2018-04-24 09:19:28 +02:00
Campbell Barton
b95df9957d
UI: move manipulator to tool-system
...
Current manipulator now follows active tool.
2018-04-20 15:59:42 +02:00
Campbell Barton
0260fad9ba
Manipulator: ruler tool
...
Add the 3D view ruler as a tool,
the modal operator remains for now
however it may be removed if we use the tool-system for 2.8.
Note that this does copy code from the operator,
its different enough not to attempt to de-duplicate.
2017-11-11 03:27:21 +11:00
Campbell Barton
4c53f2000f
Cleanup: move tool-bar checks into functions
...
Also support separator in tool-bar sub-menus
2017-11-03 16:30:51 +11:00
Campbell Barton
1ca3e1a91d
UI: support nested tools in toolbar
2017-11-02 23:05:13 +11:00
Campbell Barton
cd3c31b2c0
Tool System: experimental low-poly construction
...
Tool for creating polygons, exact usage may change based on feedback.
LMB to add faces at boundaries (tris from edges, quads from verts).
- Ctrl splits edges
- Alt to dissolve edges/verts.
Works well with vertex snap & auto-merge.
This uses selection hover but isn't intended to introduce more widely
pre-selection highlighting, at least it will be restricted to this tool.
2017-10-26 18:40:27 +11:00
Campbell Barton
d3fafa3002
Manipulator: move 'Scale Cage' to its own tool
...
Was activated with the regular scale manipulator,
move to own tool since they are different ways to access scale.
2017-10-21 23:01:19 +11:00
Campbell Barton
e1e7b6db2e
WM: Initial Tool System
...
The tool-system it's self is primitive and may be changed.
Adding to 2.8 to develop operators and manipulators as tools.
Currently this is exposed in the toolbar, collapsed by default.
Work-flow remains unchanged if you don't change the active tool.
Placing the 3D cursor is now a Click instead of a Press event,
this allows tweak events to be mapped to tools such as border select,
keeping click for 3D cursor placement when selection tools are set.
2017-10-21 16:39:35 +11:00