2 years agoDRW : Fix Compiler Warning
Clément Foucault [Tue, 26 Sep 2017 11:59:31 +0000 (13:59 +0200)]
DRW : Fix Compiler Warning

2 years agoEevee : Fix compilation warning on intel.
Clément Foucault [Tue, 26 Sep 2017 11:58:59 +0000 (13:58 +0200)]
Eevee : Fix compilation warning on intel.

2 years agoGPU_immediate_util: add cube drawing function
Campbell Barton [Tue, 26 Sep 2017 07:51:47 +0000 (17:51 +1000)]
GPU_immediate_util: add cube drawing function

2 years agoCleanup: naming (GPU immediate util)
Campbell Barton [Tue, 26 Sep 2017 05:21:01 +0000 (15:21 +1000)]
Cleanup: naming (GPU immediate util)

2 years agoMissed from merge commit
Campbell Barton [Tue, 26 Sep 2017 04:57:14 +0000 (14:57 +1000)]
Missed from merge commit

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 26 Sep 2017 04:52:21 +0000 (14:52 +1000)]
Merge branch 'master' into blender2.8

2 years agoBeauty fill was skipping small faces
Campbell Barton [Tue, 26 Sep 2017 02:59:23 +0000 (12:59 +1000)]
Beauty fill was skipping small faces

2 years agoFix T52871: beauty fill error
Campbell Barton [Tue, 26 Sep 2017 02:14:46 +0000 (12:14 +1000)]
Fix T52871: beauty fill error

Only lock tri's facing different directions.
Needed because scanfill creates zero area faces.

2 years agoRevert "Fix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was mistakenly consid...
Campbell Barton [Mon, 25 Sep 2017 06:54:36 +0000 (16:54 +1000)]
Revert "Fix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was mistakenly considering the state as degenerated"

This reverts commit a8f11f5422afa01608817755eea310e987f896be.

Result is no longer symmetrical, will investigate a different fix.

2 years agoAdd missing header
Campbell Barton [Tue, 26 Sep 2017 02:13:33 +0000 (12:13 +1000)]
Add missing header

2 years agoFix T52901: New Depsgraph - Driver using "self" needs reloading file to work
Joshua Leung [Tue, 26 Sep 2017 00:29:48 +0000 (13:29 +1300)]
Fix T52901: New Depsgraph - Driver using "self" needs reloading file to work

2 years agoFix: When transforming GP strokes in "Local" mode, the strokes would get obscured
Joshua Leung [Mon, 25 Sep 2017 23:56:24 +0000 (12:56 +1300)]
Fix: When transforming GP strokes in "Local" mode, the strokes would get obscured
by the transform constraint lines

Ported over e7395c75d504af2c2f720f43ea27b93e04a378e4 from the
greasepencil-object branch. I should've fixed this ages ago, but
couldn't figure out why at the time.

2 years agodeps libs: fix xiph library support on sndfile on macOS
Arto Kitula [Mon, 25 Sep 2017 23:17:39 +0000 (02:17 +0300)]
deps libs: fix xiph library support on sndfile on macOS

2 years agoEevee: Implement Temporal Anti Aliasing / Super Sampling
Clément Foucault [Mon, 25 Sep 2017 18:14:07 +0000 (20:14 +0200)]
Eevee: Implement Temporal Anti Aliasing / Super Sampling

This adds TAA to eevee. The only thing important to note is that we need to keep the unjittered depth buffer so that the other engines are composited correctly.

2 years agoDRW : Add new view_update mechanism.
Clément Foucault [Mon, 25 Sep 2017 18:07:02 +0000 (20:07 +0200)]
DRW : Add new view_update mechanism.

This makes updates for the viewport cleaner and also add the possibility to add a new callback called when the scene is updated.

2 years agoEevee: Fix SSR in orthographic view.
Clément Foucault [Sat, 23 Sep 2017 23:25:21 +0000 (01:25 +0200)]
Eevee: Fix SSR in orthographic view.

The problem was that orthographic views can have hit position that are negative. Thus we cannot encode the hit in the sign of the Z component.

The workaround is to store the hit position in screenspace. But since we are using floating point render target, we are loosing quite a bit of precision.
TODO: use RGBA16 instead of RGBA16F. But that means encoding the pdf value somehow.

2 years agoDRW : Add AA to non meshes objects.
Clément Foucault [Sat, 23 Sep 2017 18:47:42 +0000 (20:47 +0200)]
DRW : Add AA to non meshes objects.

You can change the amount of samples in the user preferences. You do not need to restart blender to see the effect in the new viewport.

This adds another Multisample Framebuffer and textures (so even more memory required).

It works by blitting the default_fb to the multisample_fb each time the renderer need to render one or more "wire" pass.
It it then blit back to the default_fb so that the rest of pipeline is working as expected.

We COULD lower the GPU memory / bandwidth usage to render everything to the same multisample fbo and change the logic depending on if MSAA is enabled or not, but I think it's a bit too much work for now.

2 years agoGPUTexture : Fix Bind/Unbind function so it works with multisample textures.
Clément Foucault [Sat, 23 Sep 2017 18:34:53 +0000 (20:34 +0200)]
GPUTexture : Fix Bind/Unbind function so it works with multisample textures.

2 years agoGPUFramebuffer: Fix Blit function so that it works with multisample textures.
Clément Foucault [Sat, 23 Sep 2017 18:34:14 +0000 (20:34 +0200)]
GPUFramebuffer: Fix Blit function so that it works with multisample textures.

2 years agoFix compilation error after recent merge
Sergey Sharybin [Mon, 25 Sep 2017 14:02:30 +0000 (19:02 +0500)]
Fix compilation error after recent merge

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

2 years agoFix T52835: When driven IK influence change, ik animation have 1 frame delay
Sergey Sharybin [Mon, 25 Sep 2017 13:48:38 +0000 (18:48 +0500)]
Fix T52835: When driven IK influence change, ik animation have 1 frame delay

2 years agoFix T52865: Improve wording of error message when saving packed images fails
Joshua Leung [Mon, 25 Sep 2017 12:24:13 +0000 (01:24 +1300)]
Fix T52865: Improve wording of error message when saving packed images fails

Make it clear that the packed file could not be saved back out to disk
at the specified path (e.g. destination directory doesn't exist).

2 years agoOpenVDB: Fix compilation error against OpenVDB 4
Sergey Sharybin [Mon, 25 Sep 2017 09:41:30 +0000 (14:41 +0500)]
OpenVDB: Fix compilation error against OpenVDB 4

One crucial thing here: OpenVDB shoudl be compiled WITHOUT
OPENVDB_ENABLE_3_ABI_COMPATIBLE flag. This is how OpenVDB's Makefile is
configured and it's not really possible to detect this for a compiled library.

If we ever want to support that option, we need to add extra CMake argument and
use old version 3 API everywhere.

2 years agoAdd an 'atomic cas' wrapper for pointers.
Bastien Montagne [Mon, 25 Sep 2017 08:40:50 +0000 (10:40 +0200)]
Add an 'atomic cas' wrapper for pointers.

Avoids having to repeat obfuscating castings everywhere...

2 years agoTweak to fix for thread concurency in looptri generation.
Bastien Montagne [Mon, 25 Sep 2017 07:56:02 +0000 (09:56 +0200)]
Tweak to fix for thread concurency in looptri generation.

Even if pointer assignment may be atomic, it does not prevent reordering
and other nifty compiler tricks, we need a memory barrier to ensure not
only that transferring pointer from wip array to final one is atomic,
but also that all previous writing to memory are “flushed” to
(visible by) all CPUs...

Thanks @sergey for finding the potential (though quite unlikely) issue.

2 years agoCycles: Cleanup, indentation
Sergey Sharybin [Sat, 23 Sep 2017 12:36:04 +0000 (17:36 +0500)]
Cycles: Cleanup, indentation

2 years agoMirror Modifier: option to offset UV's
Campbell Barton [Mon, 25 Sep 2017 04:11:27 +0000 (14:11 +1000)]
Mirror Modifier: option to offset UV's

Useful for baking, so UV's can be moved outside the image
and not used to bake pixels (but still used for display).

D2801 by @Zuorion

2 years agoFix T52890: Crash unlinking sequencer sound
Campbell Barton [Mon, 25 Sep 2017 00:28:17 +0000 (10:28 +1000)]
Fix T52890: Crash unlinking sequencer sound

2 years agoFix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was mistakenly considering...
Germano [Sat, 23 Sep 2017 15:59:02 +0000 (12:59 -0300)]
Fix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was mistakenly considering the state as degenerated

2 years agoSplash: Increase contrast of build info text
Julian Eisel [Sat, 23 Sep 2017 13:28:45 +0000 (15:28 +0200)]
Splash: Increase contrast of build info text

Now uses "Text Selected" theme color of "Menu Back" widget colors. Also
repositioned text slightly to have same margin on top and right (measured
by eye ;) ).
Tested with all bundled themes (contrib and no-contrib) and worked fine.

Considering that different splashes may need different colors for
overlaid text, using theme color may not be the best solution. I would
like to try how this works before adding an ugly way to force a certain
text color though.
Also tried different approaches, but this one I find the least ugly :S

As far as longer term plans go, we wanted to get a redesigned multi-page
splash screen anyway. At this point we can rethink how splash colors work
in general (i.e. auto-contrast, own splash theme colors, etc).

2 years agoCycles: Fix compilation error of OpenCL megakernel on Apple
Sergey Sharybin [Sat, 23 Sep 2017 12:07:19 +0000 (17:07 +0500)]
Cycles: Fix compilation error of OpenCL megakernel on Apple

2 years agoCycles: Fix compilation error of megakernel on NVidia device
Sergey Sharybin [Sat, 23 Sep 2017 12:02:38 +0000 (17:02 +0500)]
Cycles: Fix compilation error of megakernel on NVidia device

It is more readable to explicitly compare to NULL anyway.

2 years agoTracking: Followup to previous fix, need to remap frame number for sequence tracking
Sergey Sharybin [Sat, 23 Sep 2017 11:18:27 +0000 (16:18 +0500)]
Tracking: Followup to previous fix, need to remap frame number for sequence tracking

2 years agoTracking: Cleanup, reuse existing variable
Sergey Sharybin [Sat, 23 Sep 2017 11:16:22 +0000 (16:16 +0500)]
Tracking: Cleanup, reuse existing variable

2 years agoFix T52851: Per-frame traking is broken when sequence doesn't start at frame 1
Sergey Sharybin [Sat, 23 Sep 2017 11:13:23 +0000 (16:13 +0500)]
Fix T52851: Per-frame traking is broken when sequence doesn't start at frame 1

2 years agoTracking: Fix crash when tracking failed
Sergey Sharybin [Sat, 23 Sep 2017 11:07:32 +0000 (16:07 +0500)]
Tracking: Fix crash when tracking failed

Was a dangling pointer to a freed memory left behind.

2 years agoRemove remaining qtcodecdata
Aaron Carlisle [Fri, 22 Sep 2017 21:13:46 +0000 (17:13 -0400)]
Remove remaining qtcodecdata

This fixes a mistake in rBefd5e3c25401b43cbd7f909418835bb570db1ab3

2 years agoRemove quicktime support
Aaron Carlisle [Fri, 22 Sep 2017 20:11:24 +0000 (16:11 -0400)]
Remove quicktime support

It has been deprecated since at least macOS 10.9 and fully removed in 10.12.

I am unsure if we should remove it only in 2.8. But you cannot build blender with it supported when using a modern xcode version anyway so I would tend towards just removing it also for 2.79 if that ever happens.

Reviewers: mont29, dfelinto, juicyfruit, brecht

Reviewed By: mont29, brecht

Subscribers: Blendify, brecht

Maniphest Tasks: T52807

Differential Revision:

2 years ago[cmake/deps_builder] update openjpeg to 1.5.2 to match the version in master/extern...
Ray Molenkamp [Fri, 22 Sep 2017 19:57:21 +0000 (13:57 -0600)]
[cmake/deps_builder] update openjpeg to 1.5.2 to match the version in master/extern , add support for openjpeg in oiio. Mark webp as an optional component.

2 years agoFix T52875: - numpy-1.13.1.tar.gz - 404 Not Found.
Bastien Montagne [Fri, 22 Sep 2017 16:56:37 +0000 (18:56 +0200)]
Fix T52875: - numpy-1.13.1.tar.gz - 404 Not Found.

2 years agoObject Mode : Add Outline FXAA
Clément Foucault [Fri, 22 Sep 2017 15:30:39 +0000 (17:30 +0200)]
Object Mode : Add Outline FXAA

Adds a FXAA for smoothing out the extracted outlines.
The Post Process Anti Aliasing is only done on the Alpha channel of the outlines.
Because of that we need to add bleed the outline color out of the silouhette so the AA'd alpha can blend the right color and not pick black when the alpha is smoothed out of the silhouette.

Also because of the AA needs to have clear contrast to work with, I decided to ditch the "bluring" or the occluded outlines.

The FXAA adds an overhead of 0.17ms but we gain back 0.22ms * 4 = 0.88ms by removing the blur.

The FXAA Implementation is from Corey Richardson (cmr) (D2717). I had to modify it a bit to only filter the alpha channel.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 22 Sep 2017 08:26:49 +0000 (13:26 +0500)]
Merge branch 'master' into blender2.8

2 years agoFix T52840: New Depsgraph - Mask editor not working correctly
Sergey Sharybin [Fri, 22 Sep 2017 08:23:21 +0000 (13:23 +0500)]
Fix T52840: New Depsgraph - Mask editor not working correctly

2 years agoEdit Mesh Mode : Fix GLSL compilation errors
Clément Foucault [Fri, 22 Sep 2017 01:44:06 +0000 (03:44 +0200)]
Edit Mesh Mode : Fix GLSL compilation errors

2 years agoEdit Mesh Mode: Put AntiAliasing #define into shader include header.
Clément Foucault [Fri, 22 Sep 2017 00:44:15 +0000 (02:44 +0200)]
Edit Mesh Mode: Put AntiAliasing #define into shader include header.

2 years agoEdit Mesh Mode: Add a facing falloff effect
Clément Foucault [Fri, 22 Sep 2017 00:42:57 +0000 (02:42 +0200)]
Edit Mesh Mode: Add a facing falloff effect

This let the user keep track of the shape by fading the center of the object.
An Opacity parameter is yet to be added.

2 years agoObject Mode: Fix outline getting darker during expand steps.
Clément Foucault [Thu, 21 Sep 2017 22:43:59 +0000 (00:43 +0200)]
Object Mode: Fix outline getting darker during expand steps.

2 years agoEdit Mode : Bias Face dot position
Clément Foucault [Thu, 21 Sep 2017 22:40:31 +0000 (00:40 +0200)]
Edit Mode : Bias Face dot position

2 years agoEdit Mesh Mode : Make line smoother.
Clément Foucault [Thu, 21 Sep 2017 20:00:48 +0000 (22:00 +0200)]
Edit Mesh Mode : Make line smoother.

This introduce some little artifacts on the border of edges because some pixel with very low opacity does not get discarded and then occlude the face rendered behind if it has not been drawn yet.
To fix this. I added an offset in the geometry shader for the edge fixup. This make the artifact only visible on the border of the object if there is a very dense wire region. It's only visible in edge select mode since vertex and face center also hides the artifacts.

We can enable this only if AA is enabled but for now it's always enabled.

2 years agobuild deps: add support for multiple xcode installs
Arto Kitula [Thu, 21 Sep 2017 20:54:17 +0000 (23:54 +0300)]
build deps: add support for multiple xcode installs

2 years agoCode cleanup: simplify kernel side work stealing code.
Brecht Van Lommel [Thu, 21 Sep 2017 01:37:22 +0000 (03:37 +0200)]
Code cleanup: simplify kernel side work stealing code.

2 years ago[cmake_deps/msvc] Move llvm/clang harvest to their individual cmake files.
Ray Molenkamp [Thu, 21 Sep 2017 19:10:55 +0000 (13:10 -0600)]
[cmake_deps/msvc] Move llvm/clang harvest to their individual cmake files.

2 years agodeps build: add openjpeg to OIIO
Arto Kitula [Thu, 21 Sep 2017 19:09:52 +0000 (22:09 +0300)]
deps build: add openjpeg to OIIO

2 years agoFirst development splash screen for Blender 2.8
Pablo Vazquez [Thu, 21 Sep 2017 18:30:28 +0000 (20:30 +0200)]
First development splash screen for Blender 2.8

Introducing a new header using the Blender socket logo,
commit of the source file will follow soon.

Splash committee: Ton Roosendaal, Dalai Felinto, Pablo Vazquez.

Artwork is a screenshot of 'Wanderer', an Eevee sample file
by Daniel Bystedt, available on (license: CC-BY-SA)

2 years agoDRW: Fix regression
Clément Foucault [Thu, 21 Sep 2017 17:54:43 +0000 (19:54 +0200)]
DRW: Fix regression

Textures were bound once. But since it was not unbound it's bind_num would not change and considered still bound next time a shader needed it.

Fix T52866
Fix T52855

2 years agoRevert "Fix T52855: Eevee: viewport artifacts"
Clément Foucault [Thu, 21 Sep 2017 17:43:53 +0000 (19:43 +0200)]
Revert "Fix T52855: Eevee: viewport artifacts"

This reverts commit 803c757c2b64258890aa30d20187fd8daf83b5e4.

2 years ago[cmake_deps/msvc] Move boost harvest to boost.cmake
Ray Molenkamp [Thu, 21 Sep 2017 17:16:52 +0000 (11:16 -0600)]
[cmake_deps/msvc] Move boost harvest to boost.cmake

2 years ago[cmake/builddeps] update for site-packages on windows to support the new requests...
Ray Molenkamp [Thu, 21 Sep 2017 16:16:40 +0000 (10:16 -0600)]
[cmake/builddeps] update for site-packages on windows to support the new requests version.

2 years agoFix T52855: Eevee: viewport artifacts
Dalai Felinto [Thu, 21 Sep 2017 15:40:08 +0000 (17:40 +0200)]
Fix T52855: Eevee: viewport artifacts

Partial revert of 9068c0743e08.
This commit tried to do two things:

(1) Fix UBO binding logic [good]
(2) "Improve" texture binding logic [bad]

Don't ever mix different fixes and refactors in the same commit.

2 years agoCMake: Add extra requests dependencies
Sergey Sharybin [Thu, 21 Sep 2017 13:50:19 +0000 (18:50 +0500)]
CMake: Add extra requests dependencies

Apparently, we already had some code to deal with this. So for now just
added some extra dependencies needed for latest requests.

2 years agoCleanup: unused define
Campbell Barton [Thu, 21 Sep 2017 21:23:03 +0000 (07:23 +1000)]
Cleanup: unused define

2 years agoEevee: Fix wrong MEM_callocN allocation size
Dalai Felinto [Thu, 21 Sep 2017 13:52:51 +0000 (15:52 +0200)]
Eevee: Fix wrong MEM_callocN allocation size

2 years agoDepsgraph and collection enable/visibility
Dalai Felinto [Thu, 21 Sep 2017 10:55:14 +0000 (12:55 +0200)]
Depsgraph and collection enable/visibility

Iterate over invisible objects too, so lamps can still lit the scene.
Also, now you can use a collection to set an object to invisible, not
only to visible.

For example:
Scene > Master collection > bedroom > furniture
Scene > View Layer > bedroom    (visible)
                   > furniture  (invisible)

The View Layer has two linked collections, bedroom and furniture.
This setup will make the furniture collection invisible.

Note: Unlike what was suggested on D2849, this does not make collection
visibility influence camera visibility. I will keep this as a separate

Reviewers: sergey

Subscribers: sergey, brecht, fclem

Differential Revision:

2 years agoDepsgraph: Fix bug introduced by wrong merge conflict resolution
Sergey Sharybin [Thu, 21 Sep 2017 11:09:49 +0000 (16:09 +0500)]
Depsgraph: Fix bug introduced by wrong merge conflict resolution

2 years ago3D Text: Make Ctrl Backspace/Del delete words
Campbell Barton [Thu, 21 Sep 2017 10:41:09 +0000 (20:41 +1000)]
3D Text: Make Ctrl Backspace/Del delete words

Matches text-editor, console & text-button.

2 years agoFix T52860: 3D Text crashes w/ Ctrl Backspace
Campbell Barton [Thu, 21 Sep 2017 09:14:04 +0000 (19:14 +1000)]
Fix T52860: 3D Text crashes w/ Ctrl Backspace

2 years agoInstall_deps: Raise python and numpy versions (to 3.6.2 and 1.13.1 respectively).
Bastien Montagne [Thu, 21 Sep 2017 07:57:56 +0000 (09:57 +0200)]
Install_deps: Raise python and numpy versions (to 3.6.2 and 1.13.1 respectively).

2 years agodeps build: use pip to install requests 2.18.4 and it's deps
Arto Kitula [Thu, 21 Sep 2017 06:33:00 +0000 (09:33 +0300)]
deps build: use pip to install requests 2.18.4 and it's deps

2 years agoFix T50450: Breakdowner doesn't work in Tweak Mode on translated NLA Strips
Joshua Leung [Thu, 21 Sep 2017 05:38:30 +0000 (17:38 +1200)]
Fix T50450: Breakdowner doesn't work in Tweak Mode on translated NLA Strips

2 years agoFix T52861: Keymap editor filter doesn't show shortcuts using "+"
Joshua Leung [Thu, 21 Sep 2017 04:34:48 +0000 (16:34 +1200)]
Fix T52861: Keymap editor filter doesn't show shortcuts using "+"

2 years agofix T52831 removed enforcement of matrix decomposition when animations are exported
Gaia Clary [Wed, 20 Sep 2017 22:06:11 +0000 (00:06 +0200)]
fix T52831 removed enforcement of matrix decomposition when animations are exported

2 years agorevert commit c0a7e9b6312d74 because it did not work as expected
Gaia Clary [Wed, 20 Sep 2017 22:04:10 +0000 (00:04 +0200)]
revert commit c0a7e9b6312d74 because it did not work as expected

2 years agoD2777: allow blank lines and lines with spaces/tabs in cut/paste
Gaia Clary [Mon, 7 Aug 2017 18:34:22 +0000 (20:34 +0200)]
D2777: allow blank lines and lines with spaces/tabs in cut/paste

2 years agoRevert "Fix T52792: Typo in UI label of a HairInfo node socket."
Brecht Van Lommel [Wed, 20 Sep 2017 19:39:54 +0000 (21:39 +0200)]
Revert "Fix T52792: Typo in UI label of a HairInfo node socket."

This reverts commit 8ad479a3227e36b201f740a127c08e29950bb219.

2 years agoAdded extra "const" to satisfy the strict clang version in Xcode 9
Stefan Werner [Wed, 20 Sep 2017 19:47:37 +0000 (21:47 +0200)]
Added extra "const" to satisfy the strict clang version in Xcode 9

2 years agoAdded extra "const" to satisfy the strict clang version in Xcode 9
Stefan Werner [Wed, 20 Sep 2017 19:47:37 +0000 (21:47 +0200)]
Added extra "const" to satisfy the strict clang version in Xcode 9

2 years agoFix T52792: Typo in UI label of a HairInfo node socket.
Bastien Montagne [Wed, 20 Sep 2017 19:02:57 +0000 (21:02 +0200)]
Fix T52792: Typo in UI label of a HairInfo node socket.

2 years ago[cmake/msvc] Update python to 3.6 + numpy to 1.13.1
Ray Molenkamp [Wed, 20 Sep 2017 18:51:36 +0000 (12:51 -0600)]
[cmake/msvc] Update python to 3.6 + numpy to 1.13.1

2 years agoFix T52852: Assert in looptri calculation after recent changes.
Bastien Montagne [Wed, 20 Sep 2017 18:45:51 +0000 (20:45 +0200)]
Fix T52852: Assert in looptri calculation after recent changes.

Wrong condition in asserts...

2 years ago[cmake/depsbuilder/msvc] Update to python 3.6 / numpy 1.13.1
Ray Molenkamp [Wed, 20 Sep 2017 18:29:50 +0000 (12:29 -0600)]
[cmake/depsbuilder/msvc] Update to python 3.6 / numpy 1.13.1

-No more hardcoded python35/36 tokens in the scripts
-disabled python module for boost, was not used
-Updated patches for python to support building with msvc2013

2 years agoFix missing ID remapping in Action editor callback.
Bastien Montagne [Wed, 20 Sep 2017 18:24:54 +0000 (20:24 +0200)]
Fix missing ID remapping in Action editor callback.

Spotted by Joshua Leung (@aligorith), thanks!

Should probably be backported to 2.79a should we do it.

2 years agoFix T52368: Cycles OSL trace() failing on Windows 32 bit.
Brecht Van Lommel [Wed, 20 Sep 2017 17:36:24 +0000 (19:36 +0200)]
Fix T52368: Cycles OSL trace() failing on Windows 32 bit.

2 years agoFix T52853: harmless Cycles test failure in debug mode.
Brecht Van Lommel [Wed, 20 Sep 2017 17:24:18 +0000 (19:24 +0200)]
Fix T52853: harmless Cycles test failure in debug mode.

2 years agoCycles: use defensive sampling for picking BSDFs and BSSRDFs.
Brecht Van Lommel [Wed, 13 Sep 2017 16:28:31 +0000 (18:28 +0200)]
Cycles: use defensive sampling for picking BSDFs and BSSRDFs.

For the first bounce we now give each BSDF or BSSRDF a minimum sample weight,
which helps reduce noise for a typical case where you have a glossy BSDF with
a small weight due to Fresnel, but not necessarily small contribution relative
to a diffuse or transmission BSDF below.

We can probably find a better heuristic that also enables this on further
bounces, for example when looking through a perfect mirror, but I wasn't able
to find a robust one so far.

2 years agoCycles: slightly improve BSDF sample stratification for path tracing.
Brecht Van Lommel [Thu, 14 Sep 2017 20:56:32 +0000 (22:56 +0200)]
Cycles: slightly improve BSDF sample stratification for path tracing.

Similar to what we did for area lights previously, this should help
preserve stratification when using multiple BSDFs in theory. Improvements
are not easily noticeable in practice though, because the number of BSDFs
is usually low. Still nice to eliminate one sampling dimension.

2 years agoCode cleanup: refactor BSSRDF closure sampling, for next commit.
Brecht Van Lommel [Thu, 14 Sep 2017 23:55:44 +0000 (01:55 +0200)]
Code cleanup: refactor BSSRDF closure sampling, for next commit.

2 years agoCode cleanup: remove SOBOL_SKIP hack, seems no longer needed.
Brecht Van Lommel [Mon, 18 Sep 2017 22:38:22 +0000 (00:38 +0200)]
Code cleanup: remove SOBOL_SKIP hack, seems no longer needed.

2 years agoCode cleanup: remove hack to avoid seeing transparent objects in noise.
Brecht Van Lommel [Thu, 14 Sep 2017 19:53:00 +0000 (21:53 +0200)]
Code cleanup: remove hack to avoid seeing transparent objects in noise.

Previously the Sobol pattern suffered from some correlation issues that
made the outline of objects like a smoke domain visible. This helps
simplify the code and also makes some other optimizations possible.

2 years agoFix Cycles test report not closing files properly.
Brecht Van Lommel [Wed, 20 Sep 2017 17:12:26 +0000 (19:12 +0200)]
Fix Cycles test report not closing files properly.

2 years agoFix T52842: Incorrect description for bpy.types.MeshTextureFace.uv
Bastien Montagne [Wed, 20 Sep 2017 14:39:13 +0000 (16:39 +0200)]
Fix T52842: Incorrect description for bpy.types.MeshTextureFace.uv

Tweak rna_info module to generate valid info also for multi-dimensional arrays.

2 years agoExpose multi-dimensional array data in properties' introspection data.
Bastien Montagne [Wed, 20 Sep 2017 14:37:01 +0000 (16:37 +0200)]
Expose multi-dimensional array data in properties' introspection data.

Required to generate valid doc for such arrays!

2 years agoFix module, broken by recent changes in bpy.types presumably.
Bastien Montagne [Wed, 20 Sep 2017 14:35:23 +0000 (16:35 +0200)]
Fix module, broken by recent changes in bpy.types presumably.

Hope fix is OK, seems to work with API generation script at least.

2 years agoUI: fullstop at end of tooltips
Campbell Barton [Wed, 20 Sep 2017 13:58:08 +0000 (23:58 +1000)]
UI: fullstop at end of tooltips

Allows for multiple sentences not to look strange.
Convention not to include in RNA remains.

2 years agoLayer collection enable flag
Dalai Felinto [Wed, 20 Sep 2017 12:15:35 +0000 (14:15 +0200)]
Layer collection enable flag

Right now this is exposed in the outliner, though all this
(visible/selectable/enable) should be moved to a new panel soon.

This removes objects from the depsgraph when the collection is disabled.

It allows you to "hide" lamps but still having them lighting the scene.
Same for light probes and other support objects.

Pending tasks:

* Have depsgraph to include invisible objects in the DEG_OBJECTS_ITER, and
then have Eevee and other engines to make a distinction between an
invisible and a visible object.

(for example, we probably want invisible objects to not show in the
viewport, but cast shadows and show up in light probes).

* Change how we evaluate collection settings so that an invisible
collection can force an object to be invisible.

Reviewers: campbellbarton

Subscribers: sergey

Differential Revision:

2 years agodeps build: correct sndfile fix
Arto Kitula [Wed, 20 Sep 2017 10:20:23 +0000 (13:20 +0300)]
deps build: correct sndfile fix

2 years agoManipulator: fix visibility check w/ 2-axis planes
Campbell Barton [Wed, 20 Sep 2017 08:30:24 +0000 (18:30 +1000)]
Manipulator: fix visibility check w/ 2-axis planes

2 years agoCleanup: move 3d manipulators into an array
Campbell Barton [Wed, 20 Sep 2017 07:47:34 +0000 (17:47 +1000)]
Cleanup: move 3d manipulators into an array

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 20 Sep 2017 06:10:40 +0000 (16:10 +1000)]
Merge branch 'master' into blender2.8

2 years agoBLI_polyfill2d_test: script to generate test data
Campbell Barton [Wed, 20 Sep 2017 03:39:31 +0000 (13:39 +1000)]
BLI_polyfill2d_test: script to generate test data