96a7ed8a15
Tool System: store operator properties in the tool
...
This replaces last-used property use which wasn't reliable since
properties were not considered 'set' - causing them to be ignored.
2018-05-22 15:31:06 +02:00
bc46034752
Cleanup: fix compiler warnings.
2018-05-22 14:17:52 +02:00
9fc5a0c95e
Fix area tool getting out of sync w/ active tool
2018-05-22 09:41:41 +02:00
f9547ab313
Fix tools not being initialized on startup
2018-05-18 17:36:11 +02:00
987d1df571
Tool System: store the active tool in ScrArea
...
Without this we need to have the context to get the
(space_type, mode) args for an active tool lookup.
For event handling & poll its more convenient to have direct access.
2018-05-18 09:40:52 +02:00
3af4a46a18
Tool System: tools now initialize on startup
2018-05-17 22:03:34 +02:00
b0c8d35142
Tool System: use context mode
...
Was using object mode in the workspace API which isn't
useful for accessing tools.
2018-05-17 20:28:14 +02:00
edf6676a77
Tool System: per space/mode tool support
...
This patch adds support for:
- Per space-type tools (3D view and edit).
- Per mode tools (object, edit, weight-paint .. etc).
The top-bar shows the last activated tools options, this is a design
issue with using a global topbar to show per-space settings.
See D3395
2018-05-17 15:57:33 +02:00
86b9311926
Cleanup: quiet warning, whitespace
2018-05-08 10:58:04 +02:00
05ec0108dc
WM: refresh tool on object mode switch
...
The tool manipulator could become disabled when set in the wrong mode.
2018-05-08 07:27:53 +02:00
e954082dda
WM: warn when tool widget not found
...
This happens when testing adding tools, assert isn't useful.
2018-05-03 07:33:44 +02:00
2c9670b92d
Tool System: support non-brush tools w/ paint modes
...
Allows select, gradient tools not to conflict with brush keymap.
2018-05-01 11:23:46 +02:00
ba339379fe
Fix linking brushes crashing on load
...
We need to link brushes for all windows that use a workspace.
2018-04-30 20:09:39 +02:00
0c512a6f95
Fix missing NULL check when setting the tool
2018-04-29 19:14:51 +02:00
3b785be8f4
Cleanup: warning, use STRNCPY macro
2018-04-29 14:48:30 +02:00
6e76a35f07
Tool System: support data-blocks in tools
...
Needed so tools can set the active brush.
2018-04-29 14:30:09 +02:00
0908fc1190
Tool System: publish/subscribe to tool changes
2018-04-27 08:24:20 +02:00
02f28da187
Cleanup: trailing spaces
...
Applied to newly added files in 2.8
2018-04-22 08:45:52 +02:00
d4161845b2
Tool System: show manipulators at startup
...
Support duplicating, switching workspaces too.
2017-11-27 18:36:54 +11:00