blender.git
2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 18 Sep 2017 13:10:39 +0000 (18:10 +0500)]
Merge branch 'master' into blender2.8

2 years agoColor management: When look is applied, we can not consider spaces to match
Sergey Sharybin [Mon, 18 Sep 2017 13:09:53 +0000 (18:09 +0500)]
Color management: When look is applied, we can not consider spaces to match

This should fix T52812 after merge to blender2.8.

2 years agoCorrect error in cage2d draw style enum
Campbell Barton [Mon, 18 Sep 2017 13:02:00 +0000 (23:02 +1000)]
Correct error in cage2d draw style enum

2 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Dalai Felinto [Mon, 18 Sep 2017 12:44:44 +0000 (14:44 +0200)]
Merge remote-tracking branch 'origin/master' into blender2.8

2 years agoFix T52800: fix UI flickering with Mesa on Linux.
Brecht Van Lommel [Mon, 18 Sep 2017 11:12:36 +0000 (13:12 +0200)]
Fix T52800: fix UI flickering with Mesa on Linux.

Use triple buffer by default now on all platforms, remaing ones where:
* Mesa: seems to have been working well for a long time now, and not using
  it gives issues with the latest Mesa 17.2.0.
* Windows software OpenGL: no longer supported since OpenGL 2.1 requirement
  was introduced.
* OS X with thousands of colors: this option was removed in OS X 10.6, and
  that's our minimum requirement.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 18 Sep 2017 10:54:56 +0000 (15:54 +0500)]
Merge branch 'master' into blender2.8

2 years agoFix Cycles adaptive compile without volumes broken after recent changes.
Carlo Andreacchio [Mon, 18 Sep 2017 10:31:17 +0000 (12:31 +0200)]
Fix Cycles adaptive compile without volumes broken after recent changes.

Differential Revision: https://developer.blender.org/D2847

2 years agoFix T52801: reload scripts causes Cycles viewport render crash.
Brecht Van Lommel [Mon, 18 Sep 2017 01:36:39 +0000 (03:36 +0200)]
Fix T52801: reload scripts causes Cycles viewport render crash.

2 years agoFix T52432: Blender crashes while using Ghost (new depsgraph)
Sergey Sharybin [Mon, 18 Sep 2017 10:50:27 +0000 (15:50 +0500)]
Fix T52432: Blender crashes while using Ghost (new depsgraph)

2 years agoBMesh: move bridge tools stepping logic into macro
Campbell Barton [Sun, 17 Sep 2017 14:06:29 +0000 (00:06 +1000)]
BMesh: move bridge tools stepping logic into macro

Also use floor division since regular division was giving a bias
on negative error values.

2 years agoMath Lib: add divide_floor_i
Campbell Barton [Mon, 18 Sep 2017 03:14:58 +0000 (13:14 +1000)]
Math Lib: add divide_floor_i

Integer division that floors on negative output (like Python's).

2 years agoUI: avoid int cast before clamping number input
Campbell Barton [Sun, 17 Sep 2017 07:56:23 +0000 (17:56 +1000)]
UI: avoid int cast before clamping number input

Values outside int range would overflow.

2 years agoCleanup: SGI format, remove unused struct members
Campbell Barton [Sun, 17 Sep 2017 07:55:04 +0000 (17:55 +1000)]
Cleanup: SGI format, remove unused struct members

2 years agoFix SGI foramt reader CVE-2017-2901
Campbell Barton [Sun, 17 Sep 2017 06:22:56 +0000 (16:22 +1000)]
Fix SGI foramt reader CVE-2017-2901

Integer Overflow Code Execution Vulnerability.

Reader no longer crashes on corrupt images (from own fuzz testing).

2 years agoCleanup: SGI format, avoid overflow
Campbell Barton [Sun, 17 Sep 2017 06:19:07 +0000 (16:19 +1000)]
Cleanup: SGI format, avoid overflow

Harmless but causes warnings

2 years agoCleanup: SGI format, use uint/short/char types
Campbell Barton [Sun, 17 Sep 2017 06:14:59 +0000 (16:14 +1000)]
Cleanup: SGI format, use uint/short/char types

2 years agoCycles: Fix compilation error with OpenCL split kernel
Hristo Gueorguiev [Sat, 16 Sep 2017 10:33:03 +0000 (12:33 +0200)]
Cycles: Fix compilation error with OpenCL split kernel

2 years agoFix T51074: Boolean modifier inverts operation
Campbell Barton [Sat, 16 Sep 2017 08:10:25 +0000 (18:10 +1000)]
Fix T51074: Boolean modifier inverts operation

Support for negative scaled objects.

2 years agoFix writing Iris images w/ invalid header
Campbell Barton [Sat, 16 Sep 2017 06:07:27 +0000 (16:07 +1000)]
Fix writing Iris images w/ invalid header

Regression in e142ae77cadf

2 years agoDRW: Fix Ubo binding logic and improve Texture binding logic
Clément Foucault [Sat, 16 Sep 2017 00:16:55 +0000 (02:16 +0200)]
DRW: Fix Ubo binding logic and improve Texture binding logic

Ubo needs to be rebound every times the shader changes.
This simplify the logic a bit.

Also modify texture binding logic to potentially reuse more already bound textures.

2 years agoFix T52384: Bridge pair result depends on other loops
Campbell Barton [Fri, 15 Sep 2017 19:06:19 +0000 (05:06 +1000)]
Fix T52384: Bridge pair result depends on other loops

When 2x loops have different number of vertices,
the distribution for vertices fan-fill depended on the loop order
and was often lop-sided.

This caused noticeable inconstancies depending on the input
since edge-loops are flipped to match each others winding order.

2 years agoEevee: Fix T52738: Probes are black.
Clément Foucault [Fri, 15 Sep 2017 18:08:31 +0000 (20:08 +0200)]
Eevee: Fix T52738: Probes are black.

This fix the crappy binding logic.

Note the current method is doing a lot of useless binding. We should somewhat order the texture so that reused textures are already bound most of the time.

2 years agoMerge branch 'master' into blender2.8
mano-wii [Fri, 15 Sep 2017 17:19:22 +0000 (14:19 -0300)]
Merge branch 'master' into blender2.8

2 years agoRNA: expose RegionView3D clip planes
mano-wii [Fri, 15 Sep 2017 16:55:52 +0000 (13:55 -0300)]
RNA: expose RegionView3D clip planes

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 15 Sep 2017 12:44:07 +0000 (22:44 +1000)]
Merge branch 'master' into blender2.8

2 years agoDocs: only show versions in changelog side-bar
Campbell Barton [Fri, 15 Sep 2017 12:20:14 +0000 (22:20 +1000)]
Docs: only show versions in changelog side-bar

2 years agoDocs: update API changelog to 2.79
Campbell Barton [Fri, 15 Sep 2017 12:05:31 +0000 (22:05 +1000)]
Docs: update API changelog to 2.79

2 years agoFix T52763: Boolean problem with vertex group
Sergey Sharybin [Fri, 15 Sep 2017 11:33:37 +0000 (16:33 +0500)]
Fix T52763: Boolean problem with vertex group

2 years agoGPUCodegen: Fix for loop overflow.
Clément Foucault [Fri, 15 Sep 2017 08:53:38 +0000 (10:53 +0200)]
GPUCodegen: Fix for loop overflow.

Fix asan error.

2 years agoBMesh: use less involved check for edge rotation
Campbell Barton [Fri, 15 Sep 2017 08:19:04 +0000 (18:19 +1000)]
BMesh: use less involved check for edge rotation

Was using function for edge rotation which was doing unnecessary checks
Use the face normal and BLI_polyfill_beautify_quad_rotate_calc directly.

2 years agoPolyfill Beautify: option to rotate out of degenerate state
Campbell Barton [Fri, 15 Sep 2017 08:14:17 +0000 (18:14 +1000)]
Polyfill Beautify: option to rotate out of degenerate state

Needed for 3D iterative edge-rotation to avoid flipping when projected
from different angles,
but could keep zero area faces in 2D polygons.

2 years agoFix error in recent boolean changes w/ quad split
Campbell Barton [Fri, 15 Sep 2017 08:07:00 +0000 (18:07 +1000)]
Fix error in recent boolean changes w/ quad split

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 15 Sep 2017 07:30:58 +0000 (12:30 +0500)]
Merge branch 'master' into blender2.8

2 years agoTransform: Enable recursion dependency check for new depsgraph
Sergey Sharybin [Fri, 15 Sep 2017 07:25:57 +0000 (12:25 +0500)]
Transform: Enable recursion dependency check for new depsgraph

2 years agoFix copy-paste error in recent particles fix
Sergey Sharybin [Fri, 15 Sep 2017 06:35:00 +0000 (11:35 +0500)]
Fix copy-paste error in recent particles fix

Was intersecting same triangle twice.

2 years agoFix T52442: bl_app_templates_system not working
Campbell Barton [Thu, 14 Sep 2017 19:46:43 +0000 (05:46 +1000)]
Fix T52442: bl_app_templates_system not working

Portable builds LOCAL files need to be
treated as system instead of using as a fallback to USER templates.

2 years agoFix bpy.utils.resource_path('SYSTEM') output
Campbell Barton [Thu, 14 Sep 2017 19:46:30 +0000 (05:46 +1000)]
Fix bpy.utils.resource_path('SYSTEM') output

Would return the test path for developer builds:
{blender-dirname/release}

Now return an empty string when no path is found.

2 years agoFix T52732: Particle system volume grid particles out of volume
Sergey Sharybin [Thu, 14 Sep 2017 14:43:00 +0000 (19:43 +0500)]
Fix T52732: Particle system volume grid particles out of volume

Use more watertight and robust intersection test.

It uses now ray to triangle intersection, but it's all fine because segment was
covering the whole bounding box anyway.

2 years agoFix T52729: Decimals not showing over 100m or 100 feet
Bastien Montagne [Thu, 14 Sep 2017 14:34:05 +0000 (16:34 +0200)]
Fix T52729: Decimals not showing over 100m or 100 feet

Use same 5 digits precision as we already use for e.g. Object's
location, for Object's dimensions too.

To be backported to 2.79a, should we do it.

2 years agoFix T52537: Dyntopo "detail flood fill" doesn't work in some cases
Sergey Sharybin [Thu, 14 Sep 2017 13:55:08 +0000 (18:55 +0500)]
Fix T52537: Dyntopo "detail flood fill" doesn't work in some cases

Mainly when object origin is not at the geometry bounding box center.

Seems to be straightforward to fix, hopefully it doesn't break some obscure case
where this was a desired behavior.

2 years agoCorrect error in last commit
Campbell Barton [Thu, 14 Sep 2017 13:04:01 +0000 (23:04 +1000)]
Correct error in last commit

2 years agoFix T52748: Select shortest face path fails
Campbell Barton [Thu, 14 Sep 2017 12:56:48 +0000 (22:56 +1000)]
Fix T52748: Select shortest face path fails

2 years agoFix T51416: Blender Crashes while moving Sliders
Sergey Sharybin [Wed, 13 Sep 2017 15:12:19 +0000 (20:12 +0500)]
Fix T51416: Blender Crashes while moving Sliders

The issue here was that removing datablock from main database will poke editors
update, which includes buttons context to free users of texture. Since Cycles
will free datablocks from job thread, it might crash Blender since main thread
might be in the middle of drawing.

Solved by exposing extra arguments to bpy.data.foo.remove() which indicates
whether we want to perform ID user count and interface updates. While scripts
shouldn't be using those normally, this is the only way to allow Cycles to skip
interface update when removing datablock.

Reviewers: mont29

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D2840

2 years agoFix T52653: Render output of linked scenes conflicts with other scenes with the same...
Sergey Sharybin [Tue, 12 Sep 2017 06:27:22 +0000 (11:27 +0500)]
Fix T52653: Render output of linked scenes conflicts with other scenes with the same name

The issue was caused by render result identifier only consist of scene name,
which could indeed cause conflicts.

On the one hand, there are quite some areas in Blender where we need identifier
to be unique to properly address things. Usually this is required for sub-data
of IDs, like bones. On another hand, it's not that hard to support this
particular case and avoid possible frustration.

The idea is, we add library name to render identifier for linked scenes. We use
library name and not pointer so we preserve render results through undo stack.

Reviewers: campbellbarton, mont29, brecht

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D2836

2 years agoDepsgraph: Fix crash in masking, related on T52749
Sergey Sharybin [Thu, 14 Sep 2017 11:23:16 +0000 (16:23 +0500)]
Depsgraph: Fix crash in masking, related on T52749

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 14 Sep 2017 11:16:14 +0000 (16:16 +0500)]
Merge branch 'master' into blender2.8

2 years agoFix T52749: New Depsgraph - Render View Mask is not initialized correctly
Sergey Sharybin [Thu, 14 Sep 2017 11:12:01 +0000 (16:12 +0500)]
Fix T52749: New Depsgraph - Render View Mask is not initialized correctly

2 years agoMasks: Split layer evaluation into separate function
Sergey Sharybin [Thu, 14 Sep 2017 11:09:06 +0000 (16:09 +0500)]
Masks: Split layer evaluation into separate function

This way we can easily re-use bits of code for new dependency graph.

Currently should be no functional changes.

2 years agoFix T52739: Crash loading corrupted video files
Sergey Sharybin [Thu, 14 Sep 2017 09:55:35 +0000 (14:55 +0500)]
Fix T52739: Crash loading corrupted video files

Affects both "normal" open as a video file and thumbnail generation.

2 years agoFix failure in our UI code that could allow search button without search callbacks...
Bastien Montagne [Thu, 14 Sep 2017 08:58:47 +0000 (10:58 +0200)]
Fix failure in our UI code that could allow search button without search callbacks, leading to crash.

Related to (exposed by) T52735, fixes the reported crash but not the
underlying issue.

To be backported to 2.79a should we do one.

2 years agoFix T52723: Reset UV layers failed
Campbell Barton [Thu, 14 Sep 2017 07:45:17 +0000 (17:45 +1000)]
Fix T52723: Reset UV layers failed

2 years agoFix T52741: Follow track with depth object crashes Blender with new depsgraph
Sergey Sharybin [Thu, 14 Sep 2017 07:31:54 +0000 (12:31 +0500)]
Fix T52741: Follow track with depth object crashes Blender with new depsgraph

2 years agoRecent action-bake used Py3.6 syntax
Campbell Barton [Thu, 14 Sep 2017 07:03:40 +0000 (17:03 +1000)]
Recent action-bake used Py3.6 syntax

2 years agoFix T52291: Boolean fails w/ co-linear edged ngons
Campbell Barton [Thu, 14 Sep 2017 06:00:27 +0000 (16:00 +1000)]
Fix T52291: Boolean fails w/ co-linear edged ngons

This means boolean tessellation wont match viewport tessellation
however it's needed to avoid zero area triangles causing problems.

2 years agoDRW: Fix texture binding logic.
Clément Foucault [Wed, 13 Sep 2017 23:02:38 +0000 (01:02 +0200)]
DRW: Fix texture binding logic.

2 years agoGPUCodegen: Add New GPU_SOURCE_STRUCT to be used for Closure Sockets
Clément Foucault [Wed, 13 Sep 2017 23:02:10 +0000 (01:02 +0200)]
GPUCodegen: Add New GPU_SOURCE_STRUCT to be used for Closure Sockets

This way we dont rely on the static array of chars that was causing T52385.

That fixes T52385.

2 years agoManipulator: use box style for render border
Campbell Barton [Wed, 13 Sep 2017 19:04:57 +0000 (05:04 +1000)]
Manipulator: use box style for render border

2 years agoManipulator: cage2d expand hotspot
Campbell Barton [Wed, 13 Sep 2017 18:38:48 +0000 (04:38 +1000)]
Manipulator: cage2d expand hotspot

With new style drawing hotspot should be in the middle of the border,
not inside it.

2 years agoManipulator: disable hover for camera border
Campbell Barton [Wed, 13 Sep 2017 18:10:33 +0000 (04:10 +1000)]
Manipulator: disable hover for camera border

2 years agoManipulator: alternate cage2d draw style
Campbell Barton [Wed, 13 Sep 2017 17:53:37 +0000 (03:53 +1000)]
Manipulator: alternate cage2d draw style

Doesn't rely on hovering, more consistent with 2D drawing tools.

2 years agoGPU_immediate_util: Add x,y radius to circle draw
Campbell Barton [Wed, 13 Sep 2017 15:36:23 +0000 (01:36 +1000)]
GPU_immediate_util: Add x,y radius to circle draw

A version of circle drawing for non 1:1 aspects

2 years agoEevee: Fix AO disappearing when updating Probe Grids.
Clément Foucault [Wed, 13 Sep 2017 17:40:53 +0000 (19:40 +0200)]
Eevee: Fix AO disappearing when updating Probe Grids.

2 years agoEevee: Fix T52357 : SSRefraction broken after adding probe
Clément Foucault [Wed, 13 Sep 2017 17:31:48 +0000 (19:31 +0200)]
Eevee: Fix T52357 : SSRefraction broken after adding probe

I forgot the reset the toggle after rendering the probes...

2 years agoDRW: Fix incorrect Ubo Bind
Clément Foucault [Wed, 13 Sep 2017 15:44:02 +0000 (17:44 +0200)]
DRW: Fix incorrect Ubo Bind

2 years agoEevee: Get rid of glitchy black SSR.
Clément Foucault [Wed, 13 Sep 2017 15:41:00 +0000 (17:41 +0200)]
Eevee: Get rid of glitchy black SSR.

Add sanitizer. I wanted to stay away from this because I think we should fix what causes NaNs in the first place. But there can be too much different factor causing NaNs and it can be because of user inputs.

2 years agoCleanup: use explicit 2d suffix for imm utils
Campbell Barton [Wed, 13 Sep 2017 14:39:28 +0000 (00:39 +1000)]
Cleanup: use explicit 2d suffix for imm utils

Avoid ambiguity between 2d/3d (which were already named).

2 years agoCleanup: use safe free macro & comments
Campbell Barton [Wed, 13 Sep 2017 15:23:18 +0000 (01:23 +1000)]
Cleanup: use safe free macro & comments

2 years agoDRW: Fix leak (2nd attempt) cause by texture "state" tracking
Clément Foucault [Wed, 13 Sep 2017 14:55:58 +0000 (16:55 +0200)]
DRW: Fix leak (2nd attempt) cause by texture "state" tracking

This should get rid of the leak once for all.

2 years agoDRW: Fix memleak in release mode.
Clément Foucault [Wed, 13 Sep 2017 13:42:27 +0000 (15:42 +0200)]
DRW: Fix memleak in release mode.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 13 Sep 2017 13:44:13 +0000 (23:44 +1000)]
Merge branch 'master' into blender2.8

2 years agoFix T52299: X resolution of 4 causes nodes to collapse
Sergey Sharybin [Wed, 13 Sep 2017 13:29:37 +0000 (18:29 +0500)]
Fix T52299: X resolution of 4 causes nodes to collapse

Was caused by numeric overflow when calculating preview dimensions.
Now we try to avoid really insance preview resolutions by fitting
aspect into square.

2 years agoEevee: SSR: Making ray count a define rather than an uniform.
Clément Foucault [Wed, 13 Sep 2017 13:29:13 +0000 (15:29 +0200)]
Eevee: SSR: Making ray count a define rather than an uniform.

The branching introduced by the uniform caused problems on mesa + AMD in the resolve stage.
This patch create one shader per sample count without branching.
This improves performance of a single ray per pixel case (3.0ms against 3.6ms in my testing)

2 years agoCode cleanup: store branch factor in PathState.
Brecht Van Lommel [Sun, 10 Sep 2017 12:09:12 +0000 (14:09 +0200)]
Code cleanup: store branch factor in PathState.

2 years agoCode cleanup: avoid used of uninitialized value in case of precision issue.
Brecht Van Lommel [Fri, 8 Sep 2017 01:21:50 +0000 (03:21 +0200)]
Code cleanup: avoid used of uninitialized value in case of precision issue.

2 years agoCode cleanup: abstract shadow catcher logic more into accumulation code.
Brecht Van Lommel [Mon, 28 Aug 2017 11:33:37 +0000 (13:33 +0200)]
Code cleanup: abstract shadow catcher logic more into accumulation code.

2 years agoCode cleanup: deduplicate some branched and split kernel code.
Brecht Van Lommel [Wed, 13 Sep 2017 00:10:24 +0000 (02:10 +0200)]
Code cleanup: deduplicate some branched and split kernel code.

Benchmarks peformance on GTX 1080 and RX 480 on Linux is the same for
bmw27, classroom, pabellon, and about 2% faster on fishy_cat and koro.

2 years agoCode cleanup: tweak inlining for 2% better CUDA performance with hair.
Brecht Van Lommel [Tue, 12 Sep 2017 22:12:51 +0000 (00:12 +0200)]
Code cleanup: tweak inlining for 2% better CUDA performance with hair.

2 years agoFix T52140: Align objects centers using origin for text
Sergey Sharybin [Wed, 13 Sep 2017 12:38:20 +0000 (17:38 +0500)]
Fix T52140: Align objects centers using origin for text

The issue was caused by operator redo which frees all object's evaluated data,
including bounding box. This bounding box can not be reconstructed properly
without full curve evaluation (need to at least convert font to nurbs, which is
not cheap already).

2 years agoCleanup: avoid right-shifted args in RNA register
Campbell Barton [Wed, 13 Sep 2017 11:52:57 +0000 (21:52 +1000)]
Cleanup: avoid right-shifted args in RNA register

2 years agoNode UI: scale cross by pixelsize
Campbell Barton [Wed, 13 Sep 2017 11:46:43 +0000 (21:46 +1000)]
Node UI: scale cross by pixelsize

Draws a little smaller to fit with 2.8x manipulator.

2 years agoManipulator: cage2d option to grab w/ a center handle
Campbell Barton [Wed, 13 Sep 2017 11:42:13 +0000 (21:42 +1000)]
Manipulator: cage2d option to grab w/ a center handle

2 years agoFix T52113: Compositor doesnt mix unrendered render layers well
Sergey Sharybin [Wed, 13 Sep 2017 10:37:01 +0000 (15:37 +0500)]
Fix T52113: Compositor doesnt mix unrendered render layers well

Compositor was always defaulting to all-zero s output for missing passes.

This was broken in 4cf7fc3.

2 years agoCompositor: Cleanup, get rid of nested ternary operators
Sergey Sharybin [Wed, 13 Sep 2017 10:00:14 +0000 (15:00 +0500)]
Compositor: Cleanup, get rid of nested ternary operators

Having single switch statement is much more readable.

2 years agoCompositor: Cleanup, de-duplicate some code
Sergey Sharybin [Wed, 13 Sep 2017 09:57:57 +0000 (14:57 +0500)]
Compositor: Cleanup, de-duplicate some code

2 years agoCompositor: Cleanup, reduce indentation level in render layer node
Sergey Sharybin [Wed, 13 Sep 2017 09:52:24 +0000 (14:52 +0500)]
Compositor: Cleanup, reduce indentation level in render layer node

There is absolute no reason to have such an indentation level, it only causes
readability and maintainability issues. It is really simple to make code more
"streamlined".

2 years agoManipulator: Only allow negative scale w/ flag set
Campbell Barton [Wed, 13 Sep 2017 08:19:23 +0000 (18:19 +1000)]
Manipulator: Only allow negative scale w/ flag set

In most cases we don't want this by default

2 years agoManipulator: use solid regions for select drawing
Campbell Barton [Wed, 13 Sep 2017 07:07:15 +0000 (17:07 +1000)]
Manipulator: use solid regions for select drawing

Needed for 3D view selection

2 years agoManipulator: cage2d - uniform handle size
Campbell Barton [Tue, 12 Sep 2017 17:29:29 +0000 (03:29 +1000)]
Manipulator: cage2d - uniform handle size

2 years agoManipulator: fix cage2d scaling
Campbell Barton [Tue, 12 Sep 2017 15:11:18 +0000 (01:11 +1000)]
Manipulator: fix cage2d scaling

2 years agoEevee: Fix T52713: SSR not working in AMD
Clément Foucault [Tue, 12 Sep 2017 16:32:29 +0000 (18:32 +0200)]
Eevee: Fix T52713: SSR not working in AMD

This was cause by a fairly funky unitialize buffer (last frame) that was causing NANs during the SSR resolve stage.
They were then propagated to the whole image during the next swap.

Bypassing the SSR completly if no valid history exists fixes the problem. Also disabling SSR data output in this case so we can have correct reflection in the 1st history buffer.

2 years agoEevee: Fix T52510: assert with volume defines.
Clément Foucault [Tue, 12 Sep 2017 15:50:21 +0000 (17:50 +0200)]
Eevee: Fix T52510: assert with volume defines.

This assert was not making sense at all. Removing

2 years agoEevee: Fix extinction of Light parallel to views.
Clément Foucault [Tue, 12 Sep 2017 14:18:18 +0000 (16:18 +0200)]
Eevee: Fix extinction of Light parallel to views.

This was a problem with orthographic views and lights without rotations. This introduce a small bias that should fix most cases.

2 years agoCycles: change AO bounces approximation to do more glossy and transmission.
Mathieu Menuet [Tue, 12 Sep 2017 13:13:55 +0000 (15:13 +0200)]
Cycles: change AO bounces approximation to do more glossy and transmission.

Rather than treating all ray types equally, we now always render 1 glossy
bounce and unlimited transmission bounces. This makes it possible to get
good looking results with low AO bounces settings, making it useful to
speed up interior renders for example.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D2818

2 years agoEevee: Fix wrong shadow Orco mapping.
Clément Foucault [Tue, 12 Sep 2017 13:06:07 +0000 (15:06 +0200)]
Eevee: Fix wrong shadow Orco mapping.

2 years agoEevee / DRW : Codestyle
Clément Foucault [Tue, 12 Sep 2017 13:03:34 +0000 (15:03 +0200)]
Eevee / DRW : Codestyle

2 years agoT50354: Action length calculation added unnecessary padding if some F-Curves
Joshua Leung [Tue, 12 Sep 2017 00:35:04 +0000 (12:35 +1200)]
T50354: Action length calculation added unnecessary padding if some F-Curves
only contained a single key (on the last real frame of the action).

2 years agoAdding some verbose documentation
Joshua Leung [Mon, 11 Sep 2017 11:42:31 +0000 (23:42 +1200)]
Adding some verbose documentation

I thought this was already clear enough, but apparently not.

2 years agoEevee: Fix T52480: Can't reproduce Metallic transparency with Principled + Mix Shader
Clément Foucault [Tue, 12 Sep 2017 12:19:57 +0000 (14:19 +0200)]
Eevee: Fix T52480: Can't reproduce Metallic transparency with Principled + Mix Shader

You can now use a transparent shader as a completly transparent bsdf. And use whatever alpha mask in a mix shader between a transparent bsdf and another bsdf.

2 years agoEevee: Fix T52546 : 129th light crashes Blender
Clément Foucault [Tue, 12 Sep 2017 11:13:20 +0000 (13:13 +0200)]
Eevee: Fix T52546 : 129th light crashes Blender

2 years agoFix T52573: Cycles baking artifacts
Sergey Sharybin [Tue, 12 Sep 2017 11:33:42 +0000 (16:33 +0500)]
Fix T52573: Cycles baking artifacts

Synchronize condition for faces split between Cycles itself and baking API.