Commit Graph

11454 Commits

Author SHA1 Message Date
Campbell Barton
b323167600 GP: box/lasso support for select-operations
This adds support for more adbvanced select operations
matching 3D view select operators.

Also de-duplicate box/lasso select code.
2018-11-13 14:04:00 +11:00
Campbell Barton
e17843782c Cleanup: use namedtuple for KeymapParams
Prefer immutable types where possible.
2018-11-13 08:58:53 +11:00
Campbell Barton
6844f7eb0c Merge branch 'master' into blender2.8 2018-11-13 08:25:50 +11:00
Clément Foucault
77a5250975 Eevee: Hide Sprite threshold as it is not implemented yet 2018-11-12 21:18:10 +01:00
Campbell Barton
20d06eb3a8 WM: avoid string replace w/ appconfig-activate
Better construct an exact path, this would fail if the path exists
multiple times in the string.
2018-11-13 07:02:51 +11:00
Jacques Lucke
7f2401532e style fix 2018-11-12 18:04:48 +01:00
Jacques Lucke
bb39e33d25 Fix: draw_circle_2d not using the segment count from parameter list 2018-11-12 17:54:51 +01:00
Philipp Oeser
e37a6be9e1 Fix T57766: error in Quick Effects > Quick Fur
Maniphest Tasks: T57766

Differential Revision: https://developer.blender.org/D3933
2018-11-12 12:10:49 +01:00
Campbell Barton
48ad67f4a3 Tool System: support for 'dropping' tools
While there is no support for dropping tools exactly,
the cursor tool supports a keyboard oriented workflow
which is often over-ridden by other tools key-maps

While many tools had shortcuts there was no fast way to get back to
the cursor tool.

Now double-tapping space sets the cursor tool
(as long as this tool doesn't have a key mapped).
2018-11-12 13:18:08 +11:00
Campbell Barton
89786d4e30 Add back layout context for toolbar popup
Removed when removing search.
2018-11-12 11:56:13 +11:00
Campbell Barton
423668765a Missed last commit 2018-11-12 11:19:30 +11:00
Campbell Barton
e58da0b6e8 UI: remove search from toolbar popup
Reduce toolbar clutter, keep it only for tool access.

This is available in the menu, users who need to access this can use
the direct shortcut.
2018-11-12 10:46:09 +11:00
Bastien Montagne
fd65ebf39a Fix T57776: Error when adding a Torus to the scene.
Not all Object.select_set() cases had been updated to new API... Tsst. ;)
2018-11-11 11:22:38 +01:00
Antonioya
a48bc15707 GP: Change Thickness Text 2018-11-10 22:20:21 +01:00
Antonioya
473465aae2 GP: Add brush parameter to Shapes tools
Need the brush to define thickness and color of the primitive (line, box, circle)
2018-11-10 20:33:37 +01:00
Campbell Barton
9268de3a0e Cleanup: naming 2018-11-10 20:27:20 +11:00
Antonioya
2618d0e8e2 GP: Make Sculpt and Edit Toolbar consistent 2018-11-09 22:20:39 +01:00
Antonioya
dc346c05fe GP: Add missing preset properties 2018-11-09 20:04:37 +01:00
Antonioya
03ca79a509 GP: Remove duplicate shapes popover
Now the tools are in Toolbar
2018-11-09 19:48:25 +01:00
William Reynish
89a66633f1 UI: split grease pencil brush curves into subpanels. 2018-11-09 18:06:25 +01:00
William Reynish
8aa17c5b12 UI: add edge markings to top level of edge menu again.
These are commonly used and should be quick to access.
2018-11-09 18:06:25 +01:00
Brecht Van Lommel
0c8cf8fe7f Fix use of wrong icon IDs. 2018-11-09 15:39:57 +01:00
Pablo Vazquez
9ee9a257c9 UI: Fix checking for sequences. 2018-11-09 12:39:26 +01:00
Jacques Lucke
7c227e4740 Py API Docs: Warnings for some properties that are slower to access than expected. 2018-11-09 12:07:10 +01:00
Pablo Vazquez
395f0fdd48 UI: Fix bug when no sequencer strips were selected on a new scene.
Reported by Tintwotin on DevTalk. Thanks!
2018-11-09 11:53:20 +01:00
Campbell Barton
80a7c57e5e Tool System: add grease pencil primitive tool 2018-11-09 17:12:07 +11:00
Campbell Barton
f96e7154f6 UI: tweak object type active state
The state of the objects visibility should only impact
the 'active' display of the select icon, not it's self.
2018-11-09 13:18:50 +11:00
Campbell Barton
7346c4f513 Cleanup: use proportional edit template for keymap 2018-11-09 13:14:48 +11:00
Campbell Barton
e81c1d3d48 Cleanup: use tuple instead of dict
This just loops over pairs so no mapping is needed.
2018-11-09 13:14:48 +11:00
Pablo Vazquez
87186f49cc UI: Tweaks to Object Types Visibility popover.
Replace checkbox for visibility with eye icon instead.
Thanks a.monti and zebus3d for the help.

Closes T57714
Part of UI Paper Cuts T56950
2018-11-09 02:58:35 +01:00
Campbell Barton
8a41de0f8c Cleanup: de-duplicate keymap items 2018-11-09 12:46:00 +11:00
Campbell Barton
04cdf8d040 Keymap: skip loading the keymap preset in background mode
Caused a crash on exit and isn't needed.
2018-11-09 11:43:45 +11:00
Brecht Van Lommel
3064da1200 Keymap: move builtin keymaps from C to Python
This should be purely an implementation change,
for end users there should be no functional difference.

The entire key configuration is in one file with ~5000 lines of code.
Mostly avoiding code duplication and preserve comments and utility
functions from the C code.
It's a bit long but for searching and editing it's also convenient to
have it all in one file.

Notes:

- Actual keymap is shared by blender / blender_legacy
  and stored in `keymap_data/blender_default.py`

  This only generates JSON-like data to be passed into
  `keyconfig_import_from_data`, allowing other presets to load and
  manipulate the default keymap.

- Each preset defines 'keyconfig_data'
  which can be shared between presets.

- Some of the utility functions for generating keymap items still
  need to be ported over to Python.

- Some keymap items can be made into loops (marked as TODO).

See: D3907
2018-11-09 11:33:06 +11:00
Brecht Van Lommel
de8c2336ad Fix wrong selectability icon in viewport menu. 2018-11-08 19:06:42 +01:00
Brecht Van Lommel
626ca4a2d5 Fix X-Ray option showing in LookDev mode, where it does nothing. 2018-11-08 19:00:53 +01:00
Pablo Vazquez
c81ddc97ef UI: Tweaks to Add menu in Video Sequencer Editor.
Mainly organization and bringing it closer to the Add menu in the 3D Viewport.

* Icons for most top-level items when available.
* New Transitions menu for Cross, Gamma Cross and Wipe.
* Move Color and Text to top level. These options are used way too often to be in a submenu.
Having a menu with 2 entries defeats the purpose, so I've removed it for now. I checked if
add-ons used it and apparently not. It can be brought back if needed.
* Avoid empty dropdown in Scene/Mask/Clip. Solution is ugly for now and should be improved in C.
* Some effects couldn't be used without 1 or 2 strips selected, now the menu entry is grayed out accordingly.
* Some more icons for other menus.
2018-11-08 16:01:26 +01:00
Pablo Vazquez
acb8334e70 UI: Some icons for Image menu in Image editor. 2018-11-08 16:01:26 +01:00
Jacques Lucke
70355052e2 Fix: show options of image empty only for image empties 2018-11-08 14:30:27 +01:00
Campbell Barton
a421cfa8d3 UI: hide bundled addons which haven't been updated
All are displayed when '--debug' is set, see: T56351
2018-11-08 10:10:08 +11:00
Campbell Barton
bcf1997ac2 Merge branch 'master' into blender2.8 2018-11-08 09:56:22 +11:00
Campbell Barton
9ccb70f202 Cleanup: minor simplification to user-addon check 2018-11-08 09:54:13 +11:00
Campbell Barton
f12d2adc87 RNA: Object.select_set use boolean, only select
- Was setting active state, making it necessary to backup/restore
  active object in cases where this isn't needed.
  Existing scripts are explicitly setting the active object when needed.

- Use a boolean select arg (toggle selection wasn't used anywhere).

- Add an optional view layer argument since scripts should be able to
  operate outside the user context.
2018-11-08 08:54:55 +11:00
Jacques Lucke
9a38526be0 Py API Docs: show gpu_extras module 2018-11-07 15:45:28 +01:00
Clément Foucault
84ad9b102e Workbench: Add cubic filtering for smoke simulation
The option is per domain and only affects the solid / xray / wireframe view.

Eevee is not yet supported.
2018-11-07 13:25:28 +01:00
Campbell Barton
c19dafd2a6 Paint: paint.brush_select now supports gpencil
Replace grease pencil specific brush select operator.
2018-11-07 11:42:30 +11:00
Campbell Barton
895295a9f0 Paint: update shortcut detection for new logic 2018-11-07 10:54:56 +11:00
Pablo Vazquez
a55ef18309 UI: Use icons for some operators.
* Area and Workspace duplicate.
* Toggle Area Fullscreen
* Operator Search
* Workspace reorder to front/back (arrows help to know which direction means front/back)
2018-11-06 22:05:05 +01:00
Alexander Gavrilov
f600b4bc67 Shrinkwrap: new mode that projects along the target normal.
The Nearest Surface Point shrink method, while fast, is neither
smooth nor continuous: as the source point moves, the projected
point can both stop and jump. This causes distortions in the
deformation of the shrinkwrap modifier, and the motion of an
animated object with a shrinkwrap constraint.

This patch implements a new mode, which, instead of using the simple
nearest point search, iteratively solves an equation for each triangle
to find a point which has its interpolated normal point to or from the
original vertex. Non-manifold boundary edges are treated as infinitely
thin cylinders that cast normals in all perpendicular directions.

Since this is useful for the constraint, and having multiple
objects with constraints targeting the same guide mesh is a quite
reasonable use case, rather than calculating the mesh boundary edge
data over and over again, it is precomputed and cached in the mesh.

Reviewers: mont29

Differential Revision: https://developer.blender.org/D3836
2018-11-06 21:20:17 +03:00
Bastien Montagne
7b38df41ae Fix/cleanup RNA viewlayer API.
RNA's ViewLayer would present 'first level' of layer collection as a
list (collection property), when it is actually now only a single item,
same as the scene's master collection.

Note: did not try to update view_layer python tests, those are already
fully broken for quiet some time I guess (they still assume
view_layer.collections to be mutable e.g.)...
2018-11-06 17:20:49 +01:00
Sergey Sharybin
32dca36afb Cleanup: Use annotation for the new class 2018-11-06 09:57:03 +01:00