Commit Graph

75472 Commits

Author SHA1 Message Date
Clément Foucault
647a798076 Workbench: Volume: Fix slice display opacity 2018-11-13 11:22:29 +01:00
Clément Foucault
14e4fb2773 GPU: Fix crash at startup 2018-11-13 11:22:28 +01:00
Campbell Barton
aab959d71c Cleanup: split object mode out of tool checks 2018-11-13 16:58:29 +11:00
Campbell Barton
b657e9875c Tool System: use enum for gp sculpt/weight paint
Fixes T57525
2018-11-13 16:52:39 +11:00
Campbell Barton
3437cd9ac2 Cleanup: add arg to GP_EDITABLE_STROKES macro
Without this, we use arguments defined in the macro
making code hard to read.
2018-11-13 15:07:10 +11:00
Campbell Barton
184ab749c3 Merge branch 'master' into blender2.8 2018-11-13 14:25:36 +11:00
Campbell Barton
fe566a30f3 Cleanup: use lowercase 2d/3d in function names 2018-11-13 14:21:42 +11:00
Campbell Barton
97062a1b9b Cleanup: use doxy groups 2018-11-13 14:16:23 +11:00
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
ed4f204d86 WM: default operators to replace selection
Tools now default to creating new selection.
2018-11-13 14:02:28 +11:00
Campbell Barton
bba868ebf9 Cleanup: use const args 2018-11-13 13:28:43 +11:00
Campbell Barton
9879ea8a53 Cleanup: remove unused source 2018-11-13 09:38:02 +11:00
Clément Foucault
6ba7345ca5 Workbench: Volumes: Fix volumetrics step length calculation
Step size is now one voxel diagonal.
Fix T57678 Culling of smoke depending on view direction
2018-11-12 21:15:58 +01:00
Clément Foucault
3eb7928406 Workbench: Volumes: Fix volumetrics rendering twices 2018-11-12 21:12:34 +01:00
Clément Foucault
d941f40c21 Fix T57571: Blender crashes on UV transformation
That was caused by a thread safety issue on gpu_batch_presets_unregister()
which was not designed to be used for this kind of situation (managing 3D
meshes batches).
2018-11-12 18:07:01 +01:00
Alexander Gavrilov
c34c688b47 Fix build: min and max not found. 2018-11-12 19:36:31 +03:00
Alexander Gavrilov
3b9700aa51 Remove AnimMapper: it has been left unimplemented for almost ten years.
It was supposed to be a feature for substituting RNA paths on the
fly, but has never been implemented, apart from a couple of structure
definitions and passing around some always-NULL pointers. Now it gets
in the way of refactoring NLA evaluation to use GHash for efficiency.
2018-11-12 19:36:31 +03:00
Antonioya
583bc70435 GP: Hide cursor in some modes 2018-11-12 16:56:50 +01:00
Charlie Jolly
c199040438 UI: Scale control points on curve map when zooming
Mentioned by Pablo on Blender Today : https://www.youtube.com/watch?v=67NIL5A-07c @ about 27:47

Differential Revision: https://developer.blender.org/D3902
2018-11-12 14:18:35 +00:00
Antonioya
36d25fc81b GP: Cleanup unused code 2018-11-12 14:31:55 +01:00
Antonioya
314048b195 GP: Change View icon for annotations 2018-11-12 14:31:55 +01:00
Alexander Gavrilov
aee0446b6b Add a lot of update tagging to operations with NLA tracks and strips. 2018-11-12 16:18:33 +03:00
Clément Foucault
36a3a40033 Eevee: Fix ESM not working after a certain distance
This was caused by overflow caused by the background and precision during
filtering.
2018-11-12 13:50:22 +01:00
Clément Foucault
e51dae4af8 Eevee: Fix lamps shadows not updating correctly
This was visible if the lamps was out of frustum.
2018-11-12 13:50:22 +01:00
Clément Foucault
150218e58b Ruler Tool: Fix non readable text
The ruler tool is using a hard coded background color. Invert it if the
text color is bright. In the future we should maybe use a theme color
instead of guessing as it does not work well with middle gray colors.
2018-11-12 13:50:22 +01:00
Clément Foucault
b44ea9f8bb Ruler Tool: Fix text background glitch
It was using UI_draw_roundbox_aa which is not available when drawing with
the view3d opengl context (because of VAO not being shared). Replace with
simpler rect box. Of course it's a bit more ugly but at least it's working.
2018-11-12 13:50:22 +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 03e5ba3183.

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 484faaea4f.

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
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
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
Antonioya
2fdd80ba1d GP: Use same name when duplicate datablock 2018-11-11 14:31:23 +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
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
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