2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 31 Oct 2018 10:49:04 +0000 (11:49 +0100)]
Merge branch 'master' into blender2.8

2 years agoCycles: Fix wrong BVH used when disabling AVX2 in debug settings
Sergey Sharybin [Wed, 31 Oct 2018 10:46:52 +0000 (11:46 +0100)]
Cycles: Fix wrong BVH used when disabling AVX2 in debug settings

Mainly useful for debugging. Previously, when AVX2 was disabled
in the debug panel but BVH layout was kept on BVH8 nothing was

Needed to make it so supported BVH layout mask for devices is
queried in "dynamic", so it is possible to use DebugFlags there.

2 years agoGP: New Autolock Inactive Layer
Antonioya [Wed, 31 Oct 2018 10:00:02 +0000 (11:00 +0100)]
GP: New Autolock Inactive Layer

This option locks any layer no active to avoid any accidental change.

2 years agoAdd an option to do keyframe insertion in a cycle-aware fashion.
Alexander Gavrilov [Sun, 14 Oct 2018 10:04:34 +0000 (13:04 +0300)]
Add an option to do keyframe insertion in a cycle-aware fashion.

When enabled, inserting keyframes into F-Curves with simple cyclic
extrapolation (the same conditions as required for cycle-aware auto
handle smoothing to activate) will take the cycle into account:

- Keyframes that are being inserted outside of the cycle bounds
  are remapped to be inside the cycle. Thus it is not necessary
  to be within the main iteration of the cycle when tweaking.

  This becomes especially useful in the final animation tweaking
  phase when the channel keys may be staggered for overlap, so
  the actual master period is different for different channels.

- Modifying one of the end points of a cycle also changes the
  other end point when appropriate, to preserve smooth transition.

This feature applies to both manual keyframe insertion using
'I', and auto-keyframing.

Differential Revision:

2 years agoUI: Match region tabs with other navigation tabs
Campbell Barton [Wed, 31 Oct 2018 05:14:48 +0000 (16:14 +1100)]
UI: Match region tabs with other navigation tabs

2 years agoMulti-Object-Mode : Edit Curve Decimate
Campbell Barton [Wed, 31 Oct 2018 04:40:01 +0000 (15:40 +1100)]
Multi-Object-Mode : Edit Curve Decimate

D3309 by @thornydre

2 years agoCleanup: indentation
Campbell Barton [Wed, 31 Oct 2018 03:43:25 +0000 (14:43 +1100)]
Cleanup: indentation

2 years agoCleanup: rename PyAPI VertBatch to Batch
Campbell Barton [Wed, 31 Oct 2018 01:34:10 +0000 (12:34 +1100)]
Cleanup: rename PyAPI VertBatch to Batch

Only used for internal functions, follow 'GPU_batch.h' naming.

2 years agoFix leak in successive calls to Batch.program_set
Campbell Barton [Wed, 31 Oct 2018 01:30:56 +0000 (12:30 +1100)]
Fix leak in successive calls to Batch.program_set

2 years agoPyAPI: add check for exceeding batch VBO limit
Campbell Barton [Wed, 31 Oct 2018 01:11:38 +0000 (12:11 +1100)]
PyAPI: add check for exceeding batch VBO limit

2 years agoCleanup: batch Python API
Campbell Barton [Wed, 31 Oct 2018 01:02:22 +0000 (12:02 +1100)]
Cleanup: batch Python API

Add utility function to raise an error.

2 years agoFix missing error returns in batch API
Campbell Barton [Wed, 31 Oct 2018 00:55:28 +0000 (11:55 +1100)]
Fix missing error returns in batch API

2 years agoFix T57504: Scaling 3D cursor crashes
Campbell Barton [Wed, 31 Oct 2018 00:50:49 +0000 (11:50 +1100)]
Fix T57504: Scaling 3D cursor crashes

2 years agoCleanup: grease pencil RNA naming
Campbell Barton [Tue, 30 Oct 2018 22:27:40 +0000 (09:27 +1100)]
Cleanup: grease pencil RNA naming

Follow naming conventions for boolean's,

Also rename enable_settings -> use_settings_postprocess.

2 years agoCleanup: remove redundant 'gpencil_' prefix
Campbell Barton [Tue, 30 Oct 2018 21:54:27 +0000 (08:54 +1100)]
Cleanup: remove redundant 'gpencil_' prefix

Also rename 'gpencil_brush_type' -> 'tool' & correct typo.

2 years agoFix grease pencil RNA path
Campbell Barton [Tue, 30 Oct 2018 21:31:41 +0000 (08:31 +1100)]
Fix grease pencil RNA path

2 years agoUI: Right-click menu entry to flip properties Tab Bar left/right
Julian Eisel [Tue, 30 Oct 2018 23:41:03 +0000 (00:41 +0100)]
UI: Right-click menu entry to flip properties Tab Bar left/right

2 years agoUI: Don't show scrollbar in Properties tab-bar
Julian Eisel [Tue, 30 Oct 2018 22:54:25 +0000 (23:54 +0100)]
UI: Don't show scrollbar in Properties tab-bar

Addresses feedback from D3840.

2 years agoWorkbench: Attenuate dithering effect when using viewport render
Clément Foucault [Tue, 30 Oct 2018 23:45:57 +0000 (00:45 +0100)]
Workbench: Attenuate dithering effect when using viewport render

Quick hack to get rid of most of the noise when doing a viewport render in
xray or wireframe mode.

2 years agoUI: Rename "OpenGL Render" operator to "Viewport Render"
Clément Foucault [Tue, 30 Oct 2018 23:29:45 +0000 (00:29 +0100)]
UI: Rename "OpenGL Render" operator to "Viewport Render"

Since we now have an Opengl "render engine", it is misleading to have this
operator still called "OpenGL Render" when all it does is take a snapshot
of the viewport.

2 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Tue, 30 Oct 2018 23:39:20 +0000 (17:39 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

2 years agomake.bat: fix unquoted variables.
Ray Molenkamp [Tue, 30 Oct 2018 23:36:36 +0000 (17:36 -0600)]
make.bat: fix unquoted variables.

causing build issues for some users.

2 years agoUI: Match tabs active color with properties background color
Pablo Vazquez [Tue, 30 Oct 2018 22:37:14 +0000 (23:37 +0100)]
UI: Match tabs active color with properties background color

Also match topbar background color with active tab so they blend better.
And other minor adjustments for consistency.

2 years agoFix Properties tabs all showing tooltip of active tab
Julian Eisel [Tue, 30 Oct 2018 22:20:08 +0000 (23:20 +0100)]
Fix Properties tabs all showing tooltip of active tab

2 years agoMulti-Objects: CURVE_OT_split
Dalai Felinto [Tue, 30 Oct 2018 21:54:34 +0000 (18:54 -0300)]
Multi-Objects: CURVE_OT_split

2 years agoFix error checking on curve duplication
Dalai Felinto [Tue, 30 Oct 2018 21:57:13 +0000 (18:57 -0300)]
Fix error checking on curve duplication

2 years agoCleanup style :|
Dalai Felinto [Tue, 30 Oct 2018 21:44:26 +0000 (18:44 -0300)]
Cleanup style :|

So much for saving time by copying existing patches from phabricator.

2 years agoMulti-Objects: CURVE_OT_duplicate
Dalai Felinto [Tue, 30 Oct 2018 21:31:27 +0000 (18:31 -0300)]
Multi-Objects: CURVE_OT_duplicate

2 years agoMulti-Objects: CURVE_OT_extrude
Dalai Felinto [Tue, 30 Oct 2018 20:53:52 +0000 (17:53 -0300)]
Multi-Objects: CURVE_OT_extrude

2 years agoMulti-Objects: CURVE_OT_spin
Dalai Felinto [Tue, 30 Oct 2018 20:37:45 +0000 (17:37 -0300)]
Multi-Objects: CURVE_OT_spin

2 years agoMulti-Objects: CURVE_OT_dissolve_verts
Dalai Felinto [Tue, 30 Oct 2018 20:04:27 +0000 (17:04 -0300)]
Multi-Objects: CURVE_OT_dissolve_verts

2 years agoMulti-Objects: CURVE_OT_de_select_last
Habib Gahbiche [Tue, 30 Oct 2018 19:17:10 +0000 (16:17 -0300)]
Multi-Objects: CURVE_OT_de_select_last

Reviewers: dfelinto

2 years agoMulti-Objects: CURVE_OT_de_select_first
Habib Gahbiche [Tue, 30 Oct 2018 19:15:43 +0000 (16:15 -0300)]
Multi-Objects: CURVE_OT_de_select_first

Reviewers: dfelinto

2 years agoMulti-Objects: CURVE_OT_select_nth
Dalai Felinto [Tue, 30 Oct 2018 19:14:26 +0000 (16:14 -0300)]
Multi-Objects: CURVE_OT_select_nth

Based on D3407 by Daniel Griffin.

2 years agoFix broken 'search pointer' UI since this morning.
Bastien Montagne [Tue, 30 Oct 2018 18:52:06 +0000 (19:52 +0100)]
Fix broken 'search pointer' UI since this morning.

Own rB4669c3692cc4f broke completely those searchbox pointers UI
widgets... This is a quick fix, better name handling is for tomorrow.

2 years agoUI: Cleanup typos and minor tweaks to Grease Pencil related text
Pablo Vazquez [Tue, 30 Oct 2018 18:54:25 +0000 (19:54 +0100)]
UI: Cleanup typos and minor tweaks to Grease Pencil related text

First pass on adding articles, capitalize Grease Pencil, use 'keyframes' instead of 'frames' when
possible, and other minor adjustments.

2 years agoFix T56865: Selection of bones not working properly if the option `In Front` (old...
mano-wii [Tue, 30 Oct 2018 18:31:32 +0000 (15:31 -0300)]
Fix T56865: Selection of bones not working properly if the option `In Front` (old X-ray) is enabled

Differential Revision:

2 years agoPartial fix to T56865: X-ray modes does not work for the weight paint overlay.
mano-wii [Tue, 30 Oct 2018 17:51:26 +0000 (14:51 -0300)]
Partial fix to T56865: X-ray modes does not work for the weight paint overlay.

Part of the D3828 review.

2 years agoUI: Make Wireframe size respect DPI settings
Clément Foucault [Tue, 30 Oct 2018 18:07:27 +0000 (19:07 +0100)]
UI: Make Wireframe size respect DPI settings

2 years agoFix outliner scrollbar overlapping icons.
Roel Koster [Tue, 30 Oct 2018 17:58:13 +0000 (18:58 +0100)]
Fix outliner scrollbar overlapping icons.

Differential Revision:

2 years agoFix T56499: Adapt incremental snapping to orthographic viewport scale.
mano-wii [Tue, 30 Oct 2018 17:21:50 +0000 (14:21 -0300)]
Fix T56499: Adapt incremental snapping to orthographic viewport scale.

2 years agoGP: New Fade no active layer overlay option
Antonioya [Tue, 30 Oct 2018 16:53:30 +0000 (17:53 +0100)]
GP: New Fade no active layer overlay option

This option allows to fade all layers except active one. This can help in very crowded scenes with a lot of layers, to verify you are working in the right one.

2 years agoFix T57517: multires displacement baking relative to smooth base mesh not working.
Brecht Van Lommel [Tue, 30 Oct 2018 16:04:06 +0000 (17:04 +0100)]
Fix T57517: multires displacement baking relative to smooth base mesh not working.

When baking relative to multires level 0, it would apply one level of simple
subdivision still, which gave artifacts.

2 years agoObject Mode: Grid: Allow more subdivision in orthographic views
Clément Foucault [Tue, 30 Oct 2018 15:44:02 +0000 (16:44 +0100)]
Object Mode: Grid: Allow more subdivision in orthographic views

2.7x was displaying 2 additional subdivision for theses views. Bumping to 3
just to say we improved it!
Hypothetically it can be increased as much as we want but float precision
can quickly become an issue.

2 years agoUI: Fix point size and line width ignoring UI scaling option
Clément Foucault [Tue, 30 Oct 2018 15:21:44 +0000 (16:21 +0100)]
UI: Fix point size and line width ignoring UI scaling option

2 years agoObject Mode: Grid: Reduce line thickness a tiny bit and apply UI scaling
Clément Foucault [Tue, 30 Oct 2018 15:20:48 +0000 (16:20 +0100)]
Object Mode: Grid: Reduce line thickness a tiny bit and apply UI scaling

2 years agoUI: Fix inverted selection restrict icon
Clément Foucault [Tue, 30 Oct 2018 15:19:10 +0000 (16:19 +0100)]
UI: Fix inverted selection restrict icon

2 years agoFix T57512: Creating a full copy scene doens't support parenting.
Bastien Montagne [Tue, 30 Oct 2018 15:14:33 +0000 (16:14 +0100)]
Fix T57512: Creating a full copy scene doens't support parenting.

Will say it once again: we should really, really switch all that
duplicating code to proper use of new ID management API :(

2 years agoPyAPI: GPU: improve GPUShader.from_builtin and GPUShader.code_from_builtin description.
mano-wii [Tue, 30 Oct 2018 14:38:42 +0000 (11:38 -0300)]
PyAPI: GPU: improve GPUShader.from_builtin and GPUShader.code_from_builtin description.

2 years agoFix "make update" on Windows not updating addons to the blender2.8 branch.
Ray Molenkamp [Tue, 30 Oct 2018 13:55:45 +0000 (07:55 -0600)]
Fix "make update" on Windows not updating addons to the blender2.8 branch.

based on rB8e183a83b7aa3bbdefcdea6a86ca2c0dbd00417f

2 years agoFix "make update" on macOS/Linux not updating addons to the blender2.8 branch.
Brecht Van Lommel [Tue, 30 Oct 2018 13:36:48 +0000 (14:36 +0100)]
Fix "make update" on macOS/Linux not updating addons to the blender2.8 branch.

This will need to be removed once we merge into master.

2 years agoFix wrong grease pencil modifier show viewport/render icons.
Brecht Van Lommel [Tue, 30 Oct 2018 12:00:56 +0000 (13:00 +0100)]
Fix wrong grease pencil modifier show viewport/render icons.

2 years agoUI: update Cycles passes panel for single column.
Brecht Van Lommel [Tue, 30 Oct 2018 12:26:59 +0000 (13:26 +0100)]
UI: update Cycles passes panel for single column.

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Tue, 30 Oct 2018 13:13:47 +0000 (14:13 +0100)]
Merge branch 'master' into blender2.8

2 years agoGP: Back Stroke projection mode
Antonioya [Tue, 30 Oct 2018 11:59:36 +0000 (12:59 +0100)]
GP: Back Stroke projection mode

Back the old 2.7x  stroke mode when drawing. This mode try to project the new strokes over the previous strokes.

2 years agoGP: Cleanup unused
Antonioya [Tue, 30 Oct 2018 11:53:08 +0000 (12:53 +0100)]
GP: Cleanup unused

2 years agoGPU: Extend mac blitting workaround to AMD Radeon R9 familly
Clément Foucault [Tue, 30 Oct 2018 12:01:25 +0000 (13:01 +0100)]
GPU: Extend mac blitting workaround to AMD Radeon R9 familly

2 years agoFix build error on Windows 32bit, alignment was wrong.
Brecht Van Lommel [Tue, 30 Oct 2018 10:39:44 +0000 (11:39 +0100)]
Fix build error on Windows 32bit, alignment was wrong.

2 years agoAdd 'O' for Overrides to our key-coded ID UI-names generator.
Bastien Montagne [Tue, 30 Oct 2018 09:59:49 +0000 (10:59 +0100)]
Add 'O' for Overrides to our key-coded ID UI-names generator.

2 years agoAdd library-hint to datablock search menus.
Bastien Montagne [Tue, 30 Oct 2018 09:54:02 +0000 (10:54 +0100)]
Add library-hint to datablock search menus.

We had those for ID templates, but it's also tremendously useful for
regular ID pointers UI, since often you can get local and linked
data-block with same exact name...

Fetaure request from Spring team (and long due TODO...).

2 years agoGPU: Fix faulty mac gpu detection
Clément Foucault [Tue, 30 Oct 2018 10:02:49 +0000 (11:02 +0100)]
GPU: Fix faulty mac gpu detection

2 years agoPyAPI: Use 'None' arg to clear header text
Campbell Barton [Tue, 30 Oct 2018 05:16:41 +0000 (16:16 +1100)]
PyAPI: Use 'None' arg to clear header text

2 years agoPyAPI: Support for 'None' string args from Python
Campbell Barton [Tue, 30 Oct 2018 05:11:39 +0000 (16:11 +1100)]
PyAPI: Support for 'None' string args from Python

This is needed because some RNA functions differentiate a NULL 'char *'
argument from an empty string.

Previously a NULL argument could be passed when the C definition
defined the default as NULL and the argument wasn't passed
which is a fairly hidden way of handling things.

Now strings use `PROP_NEVER_NULL` by default
which can be cleared for function arguments that allow None -> NULL.

2 years agoMulti-Object EditMode: curve delete
Campbell Barton [Tue, 30 Oct 2018 03:10:36 +0000 (14:10 +1100)]
Multi-Object EditMode: curve delete

D3859 by @zazizizou

2 years agoSequencer: replace notifier /w message-bus
Campbell Barton [Tue, 30 Oct 2018 00:14:23 +0000 (11:14 +1100)]
Sequencer: replace notifier /w message-bus

2 years agoCleanup: keep RNA types sorted
Campbell Barton [Tue, 30 Oct 2018 00:06:19 +0000 (11:06 +1100)]
Cleanup: keep RNA types sorted

2 years agoFix memory leak in workspace menu
Campbell Barton [Mon, 29 Oct 2018 23:57:46 +0000 (10:57 +1100)]
Fix memory leak in workspace menu

2 years agoUI: add uiItemMenuFN which frees it's argument
Campbell Barton [Mon, 29 Oct 2018 23:46:29 +0000 (10:46 +1100)]
UI: add uiItemMenuFN which frees it's argument

2 years agoUI: add uiItemMenuFN which frees it's argument
Campbell Barton [Mon, 29 Oct 2018 23:46:29 +0000 (10:46 +1100)]
UI: add uiItemMenuFN which frees it's argument

2 years agoFix crash adding workspace
Campbell Barton [Mon, 29 Oct 2018 23:25:05 +0000 (10:25 +1100)]
Fix crash adding workspace

2 years agoUI: Support using Ctrl+Scrollwheel to cycle properties editor tabs
Julian Eisel [Mon, 29 Oct 2018 22:28:08 +0000 (23:28 +0100)]
UI: Support using Ctrl+Scrollwheel to cycle properties editor tabs

Small side effect is that area operators (toggle fullscreen/maximized, duplicate
area) are now displayed in RMB-menu. Makes sense anyway.

2 years agoUI: Move Properties editor context path into header
Julian Eisel [Mon, 29 Oct 2018 21:55:54 +0000 (22:55 +0100)]
UI: Move Properties editor context path into header

This will probably be a temporary solution to fill empty space, for until we
have a search button there. Hence, I made this optional using a compile flag.

2 years agoWM: correct description for header/status_text_set
Campbell Barton [Mon, 29 Oct 2018 21:55:36 +0000 (08:55 +1100)]
WM: correct description for header/status_text_set

Make text a required argument for both.

2 years ago3D View: use 1.0 opacity for wpaint shading
Campbell Barton [Mon, 29 Oct 2018 21:32:06 +0000 (08:32 +1100)]
3D View: use 1.0 opacity for wpaint shading

Now the colors are multiplied, faded color isn't useful to see weights.

Matches 2.7x behavior.

2 years agoEevee: Fix clearcoat materials not recieving AO
Clément Foucault [Mon, 29 Oct 2018 21:40:07 +0000 (22:40 +0100)]
Eevee: Fix clearcoat materials not recieving AO

2 years agoUI: Fix Studio Light panel in user preferencies
Clément Foucault [Mon, 29 Oct 2018 21:27:12 +0000 (22:27 +0100)]
UI: Fix Studio Light panel in user preferencies

2 years agoUI: Update Default Theme File After Recent Changes
Julian Eisel [Mon, 29 Oct 2018 20:47:27 +0000 (21:47 +0100)]
UI: Update Default Theme File After Recent Changes

2 years agoUI: Vertical Properties Editor Tabs
Julian Eisel [Mon, 29 Oct 2018 20:34:14 +0000 (21:34 +0100)]
UI: Vertical Properties Editor Tabs

Moves the Properties editor context switching to a vertical tabs region.

Design Task: T54951
Differential Revison: D3840

The tabs are regular widgets, unlike the 'old' toolshelf tabs. This means they
give mouse hover feedback, have tooltips, support the right-click menu, etc.
Also, when vertical screen space gets tight, the tabs can be scrolled, they
don't shrink like the toolshelf ones.
The tab region is slightly larger than the header. The tabs are scaled up
accordingly. This makes them nicely readable.

The header is quite empty now. As shown in T54951, we wanted to have a search
button there. This should be added next.

Implementation Notes:

* Added a new region type, RGN_TYPE_NAVIGATION.
* Having the tabs in a separate region allows scrolling of the tab-bar, unlike
  the toolshelf tabs. We might want to remove the scrollbars though.
* Added a new region flag RGN_FLAG_PREFSIZE_OR_HIDDEN, to ensure the tab region
  is either hidden or has a fixed size.
* Added some additional flags to support fine-tuning the layout in panel and
  layout code.
* Bumps subversion.

2 years agoUI: Support Displaying Enums as Tabs
Julian Eisel [Mon, 29 Oct 2018 20:20:58 +0000 (21:20 +0100)]
UI: Support Displaying Enums as Tabs

Adds `uiLayout.prop_tabs_enum(data, property, icon_only)` to BPY.

2 years agoDope Sheet: new option to display keyframe interpolation mode and extremes.
Alexander Gavrilov [Fri, 19 Oct 2018 15:55:19 +0000 (18:55 +0300)]
Dope Sheet: new option to display keyframe interpolation mode and extremes.

With the new automatic handle algorithm, it is possible to do a lot
of the animation via keyframes without touching the curves. It is
however necessary to change the keyframe interpolation and handle
types in certain cases. Currently the dopesheet/action editor
allows changing the types, but does not show them in any way.

To fix, add a new menu option to display this information. For handle
type, it is represented using the shape of the key icons: diamond for
Free, clipped diamond for Aligned, square for Vector, circle for Auto
Clamp, and cirle with dot for Automatic.

Non-bezier interpolation is a property of intervals between keys,
so it is marked by drawing lines, similar to holds. In this initial
version, only the fact of non-bezier interpolation is displayed,
without distinguishing types. For summaries, the line is drawn at
half alpha if not all curves in the group are non-bezier.

In addition, it is sometimes helpful to know the general direction
of change of the curve, and which keys are extremes. This commit
also adds an option to highlight extremes, based on comparing the
keyed values with adjacent keys. Half-intensity display is used
for overshot bezier extremes, or non-uniform summaries.

Reviewers: brecht, aligorith, billreynish

Differential Revision:

2 years agoUI: icon set updates Andrzej Ambroz, and various fixes.
William Reynish [Sun, 28 Oct 2018 16:51:40 +0000 (17:51 +0100)]
UI: icon set updates Andrzej Ambroz, and various fixes.

* Text editor word wrap, line numbers & syntax toggles now use consistent icons
  that don’t change when you enable or disable them.
* Replaced icon toggle buttons in the snapping popover with normal checkboxes
  and descriptive text labels. This makes it clearer which item is the main
  radio button, is more consistent with other popovers, and allows us to use
  more descriptive text.
* Added correct icons for grease pencil add menu.
* Added bespoke icons for grease pencil modifiers.
* Added icon for particle instance modifier.
* Added icon for fake user on & off states.
* Added correct icons for enabling/disabling modifiers in the dopesheet &
  f-curve editor.
* Made it so the restrict viewport & restrict render toggles for modifier
  update correctly when enabled or disabled, by flipping the order in the
  icon sheet. This also required changing the outliner to match.
* Removed the few old remaining icons in the old style and made sure to replace
  the last places where they were used.
* Updated many icons to be clearer & more consistent.

2 years agoUI: allow off/on icons to be in reverse order.
Brecht Van Lommel [Mon, 29 Oct 2018 15:58:34 +0000 (16:58 +0100)]
UI: allow off/on icons to be in reverse order.

The same icons are reused for "hide" and "show" properties, which need
to be in reverse order compared to each other.

2 years agoCleanup: remove unused RNA flag.
Brecht Van Lommel [Mon, 29 Oct 2018 15:19:03 +0000 (16:19 +0100)]
Cleanup: remove unused RNA flag.

2 years agoDepsgraph: use full operation key to preserve update tags on rebuild.
Alexander Gavrilov [Mon, 29 Oct 2018 17:52:32 +0000 (20:52 +0300)]
Depsgraph: use full operation key to preserve update tags on rebuild.

The key used by find_operation consists of the operation code,
node name, and an index for array property drivers. All three
elements are required to unambiguously look up a node.

2 years agoFix T57488: crash in Shrinkwrap constraint due to unsafe multi-threading.
Alexander Gavrilov [Mon, 29 Oct 2018 17:30:31 +0000 (20:30 +0300)]
Fix T57488: crash in Shrinkwrap constraint due to unsafe multi-threading.

- Constraints must not use mesh_get_eval_final as it isn't thread-safe.
- Depsgraph should keep lastDataMask when re-running COW.

2 years agoGP: Remove unneeded code to get icon
Antonioya [Mon, 29 Oct 2018 16:49:26 +0000 (17:49 +0100)]
GP: Remove unneeded code to get icon

Test the object type is not good idea here.

2 years agoGP: Cleanup typo
Antonioya [Mon, 29 Oct 2018 15:42:47 +0000 (16:42 +0100)]
GP: Cleanup typo

2 years agoDepsgraph cleanup: use proper DEG_debug_print_eval call...
Bastien Montagne [Mon, 29 Oct 2018 15:37:00 +0000 (16:37 +0100)]
Depsgraph cleanup: use proper DEG_debug_print_eval call...

2 years agoBBox accessor: switch to `switch`, add missing gpencil case.
Bastien Montagne [Mon, 29 Oct 2018 11:06:27 +0000 (12:06 +0100)]
BBox accessor: switch to `switch`, add missing gpencil case.

2 years agoEevee: Fix Sun soft shadows not starting at first sample
Clément Foucault [Mon, 29 Oct 2018 15:02:13 +0000 (16:02 +0100)]
Eevee: Fix Sun soft shadows not starting at first sample

2 years agoEdit Mode: Fix "Hidden Wire" option not working
Clément Foucault [Mon, 29 Oct 2018 14:34:47 +0000 (15:34 +0100)]
Edit Mode: Fix "Hidden Wire" option not working

2 years agoCycles: Support generating Denoising passes without actually denoising
Lukas Stockner [Mon, 29 Oct 2018 14:45:58 +0000 (15:45 +0100)]
Cycles: Support generating Denoising passes without actually denoising

Needed for the animation denoiser since the denoising filter is done separately there.

Reviewers: brecht, sergey

Reviewed By: brecht

Differential Revision:

2 years agoUI: Typo in tooltip
Pablo Vazquez [Mon, 29 Oct 2018 13:43:12 +0000 (14:43 +0100)]
UI: Typo in tooltip

2 years agoFix: Pose Breakdown operator (continued)
Jacques Lucke [Mon, 29 Oct 2018 13:07:47 +0000 (14:07 +0100)]
Fix: Pose Breakdown operator (continued)

2 years agoFix: Pose Breakdown operator
Jacques Lucke [Mon, 29 Oct 2018 12:57:17 +0000 (13:57 +0100)]
Fix: Pose Breakdown operator

Reviewer: brecht

Differential Revision: D3848

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Mon, 29 Oct 2018 12:26:09 +0000 (13:26 +0100)]
Merge branch 'master' into blender2.8

2 years agoCycles: more detailed tooltips for cryptomatte options.
Brecht Van Lommel [Mon, 29 Oct 2018 12:05:29 +0000 (13:05 +0100)]
Cycles: more detailed tooltips for cryptomatte options.

2 years agoEnable dependency graph update while rendering
Sergey Sharybin [Mon, 29 Oct 2018 11:16:18 +0000 (12:16 +0100)]
Enable dependency graph update while rendering

It is a whole point of copy-on-write to make such updates safe.
If this causes an issues, we need to solve them.

Fixes T57302: Viewport (selection etc) not updated while rendering

2 years agoFix unneeded/unwanted user counter when freeing CoW NLA
Sergey Sharybin [Mon, 29 Oct 2018 10:13:19 +0000 (11:13 +0100)]
Fix unneeded/unwanted user counter when freeing CoW NLA

2 years agoFix T57360: Crash when Play Animation in this scene
Sergey Sharybin [Mon, 29 Oct 2018 10:06:53 +0000 (11:06 +0100)]
Fix T57360: Crash when Play Animation in this scene

Was caused by a code which was putting animation value back to
original datablock.

The tricky part here is that we don't always know ID, so can not
put those values. Would be nice to have a solution for this, but
for until then we should be relatively good.