82115 Commits

Author SHA1 Message Date
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
Sergey Sharybin
a0022f80f4 Merge branch 'master' into blender2.8 2018-11-12 11:02:46 +01:00
Sergey Sharybin
e732c6af3b Cycles: Proper comment for closing header guard 2018-11-12 11:02:10 +01:00
Antonioya
b6ad300a13 Fix T57713: Object not selecteable after separate strokes
The object was duplicated in Edit mode.
2018-11-12 10:09:10 +01:00
Campbell Barton
df6530594f Fix T57527: GP draw takes events from gizmos
Add keymap flag to the gizmo handler so events can be handled
on the UI level and not get over-ridden by grease pencil.
2018-11-12 18:51:14 +11:00
Campbell Barton
5aeec31821 Fix hidden HUD region being used - zero winrct 2018-11-12 15:01:00 +11:00
Campbell Barton
30ed837473 Revert "Fix hidden action-zone interaction"
This reverts commit 03e5ba31837cbe91b633e18f19ba0b08e070e0dc.

Causes T57729, will look into an alternative fix.
2018-11-12 14:31:28 +11:00
Campbell Barton
64b463c262 Revert "Fix for hidden regions becoming active"
This reverts commit 484faaea4f314d4c598b77d56cf7fe5a167afcc0.

Causes T57729, will look into an alternative fix.
2018-11-12 14:27:47 +11:00
Campbell Barton
81ed1d7093 UI: don't show shortcuts in toolbar buttons
Restrict these to displaying in tooltips.
2018-11-12 14:05:54 +11: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
8d2ca0b8ef Fix error clearing the popup toolbar keymap
Generating the keymap for the tooltip stopped shortcuts from running.

While this could be supported - the shortcuts show in the button,
so remove shortcuts from these tips.
2018-11-12 12:22:05 +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
Campbell Barton
fb70ee0bb5 Cleanup: minor gpencil changes
- Replace BKE_brush_getactive_gpencil -> BKE_paint_brush
  (no need for per-paint-type brush access).
- Rename TOT_GP_EDITBRUSH_TYPES -> GP_EDITBRUSH_TYPE_MAX
  (avoid sharing prefix w/ unrelated constants).
- Rename instances of `GP_EditBrush_Data` to 'gp_brush'
  (`Brush` is typically called 'brush').
2018-11-12 09:59:16 +11:00
Campbell Barton
9c3e324a0d Fix headless build 2018-11-12 09:18:45 +11:00
Campbell Barton
92263b67eb Update test, missed when changing Object.select_set() 2018-11-12 09:05:38 +11:00
Antonioya
2fdd80ba1d GP: Use same name when duplicate datablock 2018-11-11 14:31:23 +01: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
Alexander Gavrilov
0dea135a36 NLA: fix frame mapping applied twice keyframing from graph/action editors.
The insert_keyframe function already applies NLA strip to action
time remapping, so doing it in insert_graph_keys/insert_action_keys
is redundant outside the code path that inserts directly into fcurve.
2018-11-11 12:42:13 +03:00
Campbell Barton
d81d77d17c Merge branch 'master' into blender2.8 2018-11-11 16:35:44 +11:00
Campbell Barton
89c2ff31d9 PyAPI: update keyword list 2018-11-11 09:37:26 +11: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
Antonioya
2ff435adb4 GP: Fix mouse cursor problems
In some situations the check of the windows got false positives and the cursor was hidden by error.
2018-11-10 16:30:37 +01:00
Bastien Montagne
fcf6f78d19 Fix (unreported) crash when deleting collection in freshly duplicated scene.
From startup .blend, add a 'full copy' new scene, and delete its
Collection 1.001 collection. That would make blender crash, once again
due to NULL collection pointer in some ChildrenCollection struct...
2018-11-10 16:22:41 +01:00
Antonioya
78ebb59604 GP: Reorganize Drawing Plane options 2018-11-10 13:19:20 +01:00
Antonioya
cabb918aea GP: Keep synchronized layer list in top bar
Now when the layer is changed, the list of layers and the topbar selector keep equal.
2018-11-10 13:06:44 +01:00
Antonioya
f1ae7f9cc1 GP: Autolock layers was not working with dopesheet
Also fixed a delayed update of the panels
2018-11-10 12:58:07 +01:00
Antonioya
e8251289d2 GP: Add to stats number of objects/selected
This information was not visible when select a GP object and can be useful.
2018-11-10 11:48:02 +01:00
William Reynish
c7d2b4530a Brush: re-order sculpt tool enum
Order is now used by the tool-system,
separators currently not supported.
2018-11-10 20:36:09 +11:00
Campbell Barton
9268de3a0e Cleanup: naming 2018-11-10 20:27:20 +11:00
Campbell Barton
f9378e5413 Merge branch 'master' into blender2.8 2018-11-10 20:02:33 +11:00
Campbell Barton
3756f920f4 BMesh: backport minor changes from 2.8 2018-11-10 19:56:02 +11:00
Campbell Barton
5a59327fb3 Cleanup: includes 2018-11-10 19:02:26 +11:00
Campbell Barton
0feeea1bd5 BMesh: avoid incorrect/invalid matrix calculation
- `BKE_object_scale_to_mat3` was used to get the worldspace scale,
  without taking constraints, parenting etc into account.
- Don't pass object's into BMesh API, (prefer matrices instead).
- Avoid matrix invert for each edge-angle calculation.
- Avoid 2x matrix multiplies when looping over edge pairs.
2018-11-10 18:55:03 +11:00
Campbell Barton
dc21ef7b86 Fix 'Load Factory Settings' loosing the keymap
Caused by recent move to Python based keymaps.
2018-11-10 11:04:32 +11:00
Campbell Barton
0121258770 Merge branch 'master' into blender2.8 2018-11-10 10:57:35 +11:00
Campbell Barton
7efac2b0b0 PyAPI: add imports arg to BPY_execute_string
Allows for avoiding `__import__` in expressions,
was already supported for BPY_execute_string_as_* API calls.
2018-11-10 10:55:04 +11:00
Campbell Barton
2f44ea68d3 Cleanup: style 2018-11-10 09:27:20 +11:00
Bastien Montagne
4d5c87f101 Fix missing tips for some RNA Object API functions parameters.
Without description, parameters are not documented at all in API (not
even their type)... Always nice to have a short description anyway.

Also fixed a few other issues in existing descriptions.
2018-11-09 22:33:27 +01:00
Antonioya
2618d0e8e2 GP: Make Sculpt and Edit Toolbar consistent 2018-11-09 22:20:39 +01:00
Habib Gahbiche
0c1934f3c2 Multi-Objects: MESH_OT_select_similar worldspace completion
This makes the operator to work 100% with worldspace similarity:
* SIMFACE_PERIMETER
* SIMFACE_AREA
* SIMEDGE_FACE_ANGLE

Note from revisor (Dalai Felinto):

I'm not sure we want to pass Object * to the bmesh api, though I
personally don't see why not. Either way I group the patches together so
we can more easily roll them back if needs be.

Maniphest Tasks: T56948
Differential Revision: D3908, D3899, D3896
2018-11-09 17:19:04 -02:00
Antonioya
dc346c05fe GP: Add missing preset properties 2018-11-09 20:04:37 +01:00
Antonioya
e6b08b6306 GP: Hide Arrow cursor while painting
The arrow cursor is too intrusive
2018-11-09 20:01:41 +01:00
Antonioya
03ca79a509 GP: Remove duplicate shapes popover
Now the tools are in Toolbar
2018-11-09 19:48:25 +01:00
Dalai Felinto
221d078641 Multi-Objects Metaball: Selection refactor - fix pick and box selection
This is inspired/based on the code we use for armature bone selection.
Both pick selection, and box selection should be working now.
2018-11-09 16:40:43 -02:00
Antonioya
983a928e1d GP: Reorder Move to Layer to TopDown 2018-11-09 19:25:38 +01:00
Jacques Lucke
a4bfccc439 Py API Docs: More gpu module documentation 2018-11-09 19:20:55 +01:00
Bastien Montagne
6cbb6db987 Cleanup: fix layer_collection_sync() using int's for short values.
Collection flag and runtime_flag are shorts, not ints...
2018-11-09 18:43:08 +01:00