blender.git
23 months agoEevee: SSR: Refactor multiple rays. Plus other changes... temp-ssr
Clément Foucault [Mon, 24 Jul 2017 09:18:11 +0000 (11:18 +0200)]
Eevee: SSR: Refactor multiple rays. Plus other changes...

-Allow a maximum of 4 rays per trace pixel.
-Removes parameter Normalize: use normalization all the time now.
-Add firefly clamp slider.

23 months agoEevee: Make MinmaxZ compatible with textureArray
Clément Foucault [Sun, 23 Jul 2017 18:33:29 +0000 (20:33 +0200)]
Eevee: Make MinmaxZ compatible with textureArray

23 months agoEevee: Planar Reflection: Remove distance approximation.
Clément Foucault [Sun, 23 Jul 2017 12:03:27 +0000 (14:03 +0200)]
Eevee: Planar Reflection: Remove distance approximation.

This commit separate the depth texture into another texture array.
This remove the need to output radial depth into alpha.
Unfortunatly it's difficult to recover position from the non linear depth buffer when applying reflection without adding a bunch of stuff.
This is in preparation of SSR planar reflections.

23 months agoEevee: SSR: Add two hit option.
Clément Foucault [Sat, 22 Jul 2017 22:03:45 +0000 (00:03 +0200)]
Eevee: SSR: Add two hit option.

This option add another raytrace per pixel, clearing some noise.
But multiplying the raytrace cost.

23 months agoEevee: SSR: Fix Opengl Render.
Clément Foucault [Sat, 22 Jul 2017 18:36:34 +0000 (20:36 +0200)]
Eevee: SSR: Fix Opengl Render.

Add a constant number of 4 drawing loop to accumulate 4 "bounce" of light in SSRs.

23 months agoEevee: SSR: Fixed problem with un-initialized texture.
Clément Foucault [Sat, 22 Jul 2017 14:22:01 +0000 (16:22 +0200)]
Eevee: SSR: Fixed problem with un-initialized texture.

Also add another debug buffer and cleanup in effect_ssr_frag.glsl

23 months agoEevee: SSR: Small fixes
Clément Foucault [Sat, 22 Jul 2017 12:43:16 +0000 (14:43 +0200)]
Eevee: SSR: Small fixes

- Encode normals for other opaque bsdf so they are not rejected by the normal facing test.
- Early out non reflective surfaces.
- Add small offset to raytrace to avoid self intersection.
- Fix fallback probes not appearing.

23 months agoEevee: SSR: Add Weight Normalization option.
Clément Foucault [Sat, 22 Jul 2017 12:41:34 +0000 (14:41 +0200)]
Eevee: SSR: Add Weight Normalization option.

23 months agoEevee: SSR: Add View Facing fadeout.
Clément Foucault [Sat, 22 Jul 2017 12:39:35 +0000 (14:39 +0200)]
Eevee: SSR: Add View Facing fadeout.

Also make hit boolean depends on hit coord not on pdf.

23 months agoEevee: SSR: Add fullscreen raytrace option and Screen border factor.
Clément Foucault [Fri, 21 Jul 2017 23:13:33 +0000 (01:13 +0200)]
Eevee: SSR: Add fullscreen raytrace option and Screen border factor.

23 months agoEevee: SSR: Use noise to dither the stride banding.
Clément Foucault [Fri, 21 Jul 2017 22:22:39 +0000 (00:22 +0200)]
Eevee: SSR: Use noise to dither the stride banding.

23 months agoEevee: SSR: Add stride and thickness parameters.
Clément Foucault [Fri, 21 Jul 2017 21:48:48 +0000 (23:48 +0200)]
Eevee: SSR: Add stride and thickness parameters.

Also polished the raytracing algorithm.

23 months agoEevee: SSR: Add fullscreen raytrace.
Clément Foucault [Fri, 21 Jul 2017 13:06:29 +0000 (15:06 +0200)]
Eevee: SSR: Add fullscreen raytrace.

23 months agoEevee: HiZ buffer: Split into two 24bit depth buffer
Clément Foucault [Fri, 21 Jul 2017 12:27:16 +0000 (14:27 +0200)]
Eevee: HiZ buffer: Split into two 24bit depth buffer

This way we don't have float precision issue we had before and we save some bandwidth.

23 months agoEevee: SSR: Add firefly filter and refine noise reduction.
Clément Foucault [Thu, 20 Jul 2017 22:24:16 +0000 (00:24 +0200)]
Eevee: SSR: Add firefly filter and refine noise reduction.

Push to 9 resolve sample.
Add an normalization as an option since it gives harsh limits.

23 months agoEevee: Codestyle.
Clément Foucault [Thu, 20 Jul 2017 22:20:05 +0000 (00:20 +0200)]
Eevee: Codestyle.

23 months agoEevee: SSR: Do the SSR pass only for probes if there is no valid double buffer.
Clément Foucault [Thu, 20 Jul 2017 22:19:23 +0000 (00:19 +0200)]
Eevee: SSR: Do the SSR pass only for probes if there is no valid double buffer.

This prevent black reflection when initializing SSR.

23 months agoEevee: SSR: Add mipmap filtering and bias to reduce noise.
Clément Foucault [Thu, 20 Jul 2017 16:40:23 +0000 (18:40 +0200)]
Eevee: SSR: Add mipmap filtering and bias to reduce noise.

Also fix the roughness factors.

23 months agoEevee: Fix glossy node roughness.
Clément Foucault [Thu, 20 Jul 2017 14:54:57 +0000 (16:54 +0200)]
Eevee: Fix glossy node roughness.

23 months agoEevee: SSR: Don't block the ray if tracing behind object.
Clément Foucault [Wed, 19 Jul 2017 21:40:14 +0000 (23:40 +0200)]
Eevee: SSR: Don't block the ray if tracing behind object.

This requires to check for backface after a hit.

23 months agoEevee: SSR: Add per pixel resolve of multiple rays.
Clément Foucault [Wed, 19 Jul 2017 17:21:16 +0000 (19:21 +0200)]
Eevee: SSR: Add per pixel resolve of multiple rays.

23 months agoEevee: SSR: Add roughness random rays.
Clément Foucault [Wed, 19 Jul 2017 13:39:37 +0000 (15:39 +0200)]
Eevee: SSR: Add roughness random rays.

23 months agoEevee: SSR: Add double buffer so we can read previous frame color.
Clément Foucault [Wed, 19 Jul 2017 12:22:03 +0000 (14:22 +0200)]
Eevee: SSR: Add double buffer so we can read previous frame color.

Also add simple reprojection and screen fade to the SSR resolve pass.

23 months agoEevee: SSR: Make raymarch step bigger.
Clément Foucault [Wed, 19 Jul 2017 12:19:03 +0000 (14:19 +0200)]
Eevee: SSR: Make raymarch step bigger.

23 months agoEevee: Fix Shader compilation.
Clément Foucault [Tue, 18 Jul 2017 14:48:45 +0000 (16:48 +0200)]
Eevee: Fix Shader compilation.

23 months agoEevee: SSR: Add simple raytracing.
Clément Foucault [Tue, 18 Jul 2017 14:48:24 +0000 (16:48 +0200)]
Eevee: SSR: Add simple raytracing.

Still imprecise.

23 months agoEevee: Fix clip/hashed alpha prepass/shadow crash.
Clément Foucault [Mon, 17 Jul 2017 13:43:24 +0000 (15:43 +0200)]
Eevee: Fix clip/hashed alpha prepass/shadow crash.

23 months agoEevee: SSR: Encode Normal in buffer and add cubemap fallback.
Clément Foucault [Mon, 17 Jul 2017 11:39:03 +0000 (13:39 +0200)]
Eevee: SSR: Encode Normal in buffer and add cubemap fallback.

Normals can point away from the camera so we cannot just put XY in the buffer and reconstruct Z later as we would not know the sign of Z.

23 months agoEevee: SSR: Output ssr datas to buffers.
Clément Foucault [Sun, 16 Jul 2017 21:49:25 +0000 (23:49 +0200)]
Eevee: SSR: Output ssr datas to buffers.

Output in 2 buffers Normals, Specular Color and roughness.
This way we can raytrace in a defered fashion and blend the exact contribution of the specular lobe on top of the opaque pass.

23 months agoEevee: Ssr: Add ssr id to glossy nodes.
Clément Foucault [Sat, 15 Jul 2017 14:09:44 +0000 (16:09 +0200)]
Eevee: Ssr: Add ssr id to glossy nodes.

An id is given to each glossy node in order to determine which specular lobe is using ssr.

23 months agoEevee: Avoid crash when using dupli objects.
Clément Foucault [Mon, 17 Jul 2017 16:31:27 +0000 (18:31 +0200)]
Eevee: Avoid crash when using dupli objects.

This is waiting a for a better solution.

23 months agoEevee: Fix transparency not drawing after volumetrics.
Clément Foucault [Mon, 17 Jul 2017 13:42:25 +0000 (15:42 +0200)]
Eevee: Fix transparency not drawing after volumetrics.

Fix T52089, Fix T52091

23 months agoEevee: Fix crash with transparency.
Clément Foucault [Mon, 17 Jul 2017 11:59:53 +0000 (13:59 +0200)]
Eevee: Fix crash with transparency.

23 months agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 18 Jul 2017 08:10:19 +0000 (18:10 +1000)]
Merge branch 'master' into blender2.8

23 months agoCleanup: use WM_event prefix for modal_tweak_exit
Campbell Barton [Tue, 18 Jul 2017 08:09:26 +0000 (18:09 +1000)]
Cleanup: use WM_event prefix for modal_tweak_exit

23 months agoWM: move WM_event_is_last_mousemove to the WM API
Campbell Barton [Tue, 18 Jul 2017 08:06:21 +0000 (18:06 +1000)]
WM: move WM_event_is_last_mousemove to the WM API

23 months agoFix T52021: Shadow catcher renders wrong when catcher object is behind transparent...
Sergey Sharybin [Tue, 18 Jul 2017 07:25:58 +0000 (09:25 +0200)]
Fix T52021: Shadow catcher renders wrong when catcher object is behind transparent object

Tweaked the path radiance summing and alpha to accommodate for possible contribution of
light by transparent surface bounces happening prior to shadow catcher intersection.

This commit will change the way how shadow catcher results looks when was behind semi
transparent object, but the old result seemed to be fully wrong: there were big artifacts
when alpha-overing the result on some actual footage.

23 months agoCycles: Remove meaningless camera ray check
Sergey Sharybin [Mon, 17 Jul 2017 10:09:13 +0000 (12:09 +0200)]
Cycles: Remove meaningless camera ray check

In branched path tracing main loop is always a camera ray, with varying
number of transparent bounces.

23 months agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 18 Jul 2017 03:09:36 +0000 (13:09 +1000)]
Merge branch 'master' into blender2.8

23 months agoCleanup: quiet picky warnings
Campbell Barton [Tue, 18 Jul 2017 02:12:40 +0000 (12:12 +1000)]
Cleanup: quiet picky warnings

23 months agoTransform: avoid possible uninitialized var
Campbell Barton [Tue, 18 Jul 2017 02:10:23 +0000 (12:10 +1000)]
Transform: avoid possible uninitialized var

23 months agoFix layers unittest - we cannot use nestted get_pointer calls
Dalai Felinto [Mon, 17 Jul 2017 16:44:33 +0000 (18:44 +0200)]
Fix layers unittest - we cannot use nestted get_pointer calls

Remember to update your //lib/tests folder as well.

Patch by Bastien Montagne(mont29)

23 months agoWork around small DPI resulting in blurry fonts, clamping auto DPI to minimum 96.
Brecht Van Lommel [Mon, 17 Jul 2017 12:10:57 +0000 (14:10 +0200)]
Work around small DPI resulting in blurry fonts, clamping auto DPI to minimum 96.

Since we added auto DPI on Linux, on some systems the UI draws smaller than before
due to the monitor reporting DPI values like 88. Blender font drawing gives quite
blurry results for such slightly smaller DPI, apparently because the builtin font
isn't really designed for such small font sizes. As a workaround this clamps the
auto DPI to minimum 96, since the main case we are interested in supporting is
high DPI displays anyway.

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

23 months agoFix T52090: clarify meaning of EnumProperty number when using ENUM_FLAG.
Brecht Van Lommel [Mon, 17 Jul 2017 11:56:51 +0000 (13:56 +0200)]
Fix T52090: clarify meaning of EnumProperty number when using ENUM_FLAG.

23 months agoFix T51971: IK non-uniform scale regression.
Brecht Van Lommel [Wed, 5 Jul 2017 21:15:12 +0000 (23:15 +0200)]
Fix T51971: IK non-uniform scale regression.

This is a different fix for the issue from D2088, preserving backwards compatibility
for IK stretching. The main problem with this patch is that this new behavior has
been there for a year, so it may break rigs created since then which rely on the new
IK stretch behavior.

Test file for various cases:
https://developer.blender.org/diffusion/BL/browse/trunk/lib/tests/animation/IK.blend

Reviewers: campbellbarton

Subscribers: maverick, pkrime

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

23 months agoRevert "Unittests: Workaround for basact->object.id.name written as DATA"
Dalai Felinto [Mon, 17 Jul 2017 16:06:49 +0000 (18:06 +0200)]
Revert "Unittests: Workaround for basact->object.id.name written as DATA"

This reverts commit aa578fba534d7d7cab215d8f57c478d641b05db7.

23 months agofix T52065: Joint ID was generated wrong for bone animation exports
Gaia Clary [Mon, 17 Jul 2017 14:39:33 +0000 (16:39 +0200)]
fix T52065: Joint ID was generated wrong for bone animation exports

23 months agoUnittests: Workaround for basact->object.id.name written as DATA
Dalai Felinto [Mon, 17 Jul 2017 13:03:35 +0000 (15:03 +0200)]
Unittests: Workaround for basact->object.id.name written as DATA

This was introduced on e7fb013a60dd. Although I would love to investigate the
issue I'm mostly concerned with gettings the tests working again.

23 months agoUnittests: Make sure layer tests pass with or without workspace
Dalai Felinto [Mon, 17 Jul 2017 10:14:02 +0000 (12:14 +0200)]
Unittests: Make sure layer tests pass with or without workspace

23 months agoRemoving unused layer TODO placeholders
Dalai Felinto [Mon, 17 Jul 2017 09:17:04 +0000 (11:17 +0200)]
Removing unused layer TODO placeholders

23 months agoFix shadow geometry shader
Dalai Felinto [Mon, 17 Jul 2017 12:27:37 +0000 (14:27 +0200)]
Fix shadow geometry shader

23 months agoFix T39925: Set Origin to Geometry on a new text object moves the origin away from...
Bastien Montagne [Mon, 17 Jul 2017 10:56:12 +0000 (12:56 +0200)]
Fix T39925: Set Origin to Geometry on a new text object moves the origin away from the object

No need to take into account font size here...

23 months agoPy API doc generation: remove reference to "Blender/Python Add-on Tutorial"
Bastien Montagne [Mon, 17 Jul 2017 09:36:27 +0000 (11:36 +0200)]
Py API doc generation: remove reference to "Blender/Python Add-on Tutorial"

That one has been moved to wiki!

23 months agoEevee: Fix double promotion.
Clément Foucault [Thu, 13 Jul 2017 10:18:39 +0000 (12:18 +0200)]
Eevee: Fix double promotion.

23 months agoBuildbot: Switch to GCC-7 for Linux build slaves
Sergey Sharybin [Mon, 17 Jul 2017 07:32:19 +0000 (09:32 +0200)]
Buildbot: Switch to GCC-7 for Linux build slaves

This is GCC version was used for Testbuild1 and Testbuild2.

23 months agoFix blenderplayer
Dalai Felinto [Mon, 17 Jul 2017 07:30:39 +0000 (09:30 +0200)]
Fix blenderplayer

23 months agoManipulator: allow ID-writing for most callbacks
Campbell Barton [Mon, 17 Jul 2017 07:20:54 +0000 (17:20 +1000)]
Manipulator: allow ID-writing for most callbacks

23 months agoManipulator: split alpha out of color property
Campbell Barton [Mon, 17 Jul 2017 05:06:18 +0000 (15:06 +1000)]
Manipulator: split alpha out of color property

Gives more convenient access from Python: `mathutils.Color`

Also correct some copy-paste error w/ property subtypes.

23 months agoFix crash re-registering the same manipulator type
Campbell Barton [Mon, 17 Jul 2017 04:33:12 +0000 (14:33 +1000)]
Fix crash re-registering the same manipulator type

Wasn't unlinking from the group instance.

23 months agoManipulator: add snap flag
Campbell Barton [Mon, 17 Jul 2017 04:16:23 +0000 (14:16 +1000)]
Manipulator: add snap flag

23 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 17 Jul 2017 03:21:05 +0000 (13:21 +1000)]
Merge branch 'master' into blender2.8

23 months agoPyDoc: minor change to recent workaround
Campbell Barton [Mon, 17 Jul 2017 03:16:37 +0000 (13:16 +1000)]
PyDoc: minor change to recent workaround

- Isolate workaround in single string and link to issue.
- Quiet unused file warning (since it's an include).

23 months agoPyAPI: don't use deprecated PyModule_GetFilename
Campbell Barton [Mon, 17 Jul 2017 02:44:03 +0000 (12:44 +1000)]
PyAPI: don't use deprecated PyModule_GetFilename

Allows compiling with newer Python versions.
Also add missing decref when compiling as a py-module.

23 months agoManipulator: allow py manipulators w/o properties
Campbell Barton [Mon, 17 Jul 2017 02:29:37 +0000 (12:29 +1000)]
Manipulator: allow py manipulators w/o properties

These could be used for manipulators that run operators.

23 months agoBPY API: Fix broken ref link
Aaron Carlisle [Sun, 16 Jul 2017 22:11:58 +0000 (18:11 -0400)]
BPY API: Fix broken ref link

23 months agoBPY API: Fix usless links leading to compile errors
Aaron Carlisle [Sun, 16 Jul 2017 21:05:29 +0000 (17:05 -0400)]
BPY API: Fix usless links leading to compile errors

See https://github.com/sphinx-doc/sphinx/issues/3866 for more information

23 months agoFix T52058: Jumping to keyframe causes Blender to freeze indefinitely
Joshua Leung [Sun, 16 Jul 2017 14:24:45 +0000 (02:24 +1200)]
Fix T52058: Jumping to keyframe causes Blender to freeze indefinitely

Revise the logic here to be more robust when keyframes with
similar-but-different frame numbers (e.g. 70.000000 vs 70.000008)
would cause the search to go into an infinite loop, as the same
keyframe was repeatedly found (and skipped).

23 months agoFix T52034: cell noise renders different.
Brecht Van Lommel [Thu, 13 Jul 2017 10:47:41 +0000 (12:47 +0200)]
Fix T52034: cell noise renders different.

Tweak the bias from the previous fix a bit to be more backwards compatible in
some scene. In the end which way we round is quite arbitrary, but keeping the
case where the texture coordinate is exactly zero the same seems better.

2 years agoFix T52066: Grid Mesh UV's aren't correct
Campbell Barton [Sat, 15 Jul 2017 14:02:09 +0000 (00:02 +1000)]
Fix T52066: Grid Mesh UV's aren't correct

2 years agoMerge branch 'master' into blender2.8
mano-wii [Fri, 14 Jul 2017 20:26:46 +0000 (17:26 -0300)]
Merge branch 'master' into blender2.8

2 years agoSnap System: Fixed index of objects used to make `snap to volume`
mano-wii [Fri, 14 Jul 2017 20:25:16 +0000 (17:25 -0300)]
Snap System: Fixed index of objects used to make `snap to volume`

*note: make a complete test scene

2 years agoMerge branch 'master' into blender2.8
mano-wii [Fri, 14 Jul 2017 19:56:36 +0000 (16:56 -0300)]
Merge branch 'master' into blender2.8

# Conflicts:
# source/blender/editors/transform/transform_snap_object.c

2 years agoSnap System: Use function that does the interactor instead of Macro
mano-wii [Fri, 14 Jul 2017 19:52:31 +0000 (16:52 -0300)]
Snap System: Use function that does the interactor instead of Macro

Macro makes debugging difficult. And in that case I was escaping from the style used in Blender

2 years agoFix MSVSC compiler warning
Antonio Vazquez [Fri, 14 Jul 2017 18:59:26 +0000 (20:59 +0200)]
Fix MSVSC compiler warning

A void function cannot return a value

2 years agoSnap System: minor issues
mano-wii [Fri, 14 Jul 2017 17:46:07 +0000 (14:46 -0300)]
Snap System: minor issues

rename obj -> ob_iter

2 years agoImplement Uniformbuffer objects for nodetree parameters
Dalai Felinto [Fri, 14 Jul 2017 15:40:54 +0000 (17:40 +0200)]
Implement Uniformbuffer objects for nodetree parameters

For users that means you can tweak shaders in the nodetree and things
are way faster. This is a huge improvement, particularly in
systems that have no shader cache.

From the code perspective it means we are no longer re-compiling the
shader every time a value is tweaked in the UI. We are using uniforms
for those values.

It would be slow to add that many uniforms for all the shaders. So
instead we are using UBO (Uniform Buffer Objects).

This fixes the main issue of T51467. However GWN_shaderinterface_create() still
needs to be improvedi. When opening a .blend all shaders are compiled once, so
optimizing it will bring a measurable impact.

========================================================================
NOTE: This breaks update of Cycles material upon nodetree nodes
tweaking. It will be fixed separately by depsgraph, once tackling T51925
(Animated Eevee values slowdown).

The idea is to make Depsgraph update more granular. The XXX TODO in
rna_nodetree.c will be tackled at that time as well.
========================================================================

Reviewers: sergey, brecht, fclem

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

2 years agoDwM: don't use context to apply color-management
Campbell Barton [Fri, 14 Jul 2017 14:49:48 +0000 (00:49 +1000)]
DwM: don't use context to apply color-management

Would give different results for off-screen rendering.

2 years agoMerge branch 'master' of git@git.blender.org:blender.git into blender2.8
mano-wii [Fri, 14 Jul 2017 14:24:43 +0000 (11:24 -0300)]
Merge branch 'master' of git@git.blender.org:blender.git into blender2.8

2 years agoSnap System: missing change
mano-wii [Fri, 14 Jul 2017 14:20:28 +0000 (11:20 -0300)]
Snap System: missing change

2 years agoMerge branch 'master' of git@git.blender.org:blender.git into blender2.8
mano-wii [Fri, 14 Jul 2017 13:42:59 +0000 (10:42 -0300)]
Merge branch 'master' of git@git.blender.org:blender.git into blender2.8

2 years agoSnap System: fix rename `ob` to `obj`
mano-wii [Fri, 14 Jul 2017 13:41:47 +0000 (10:41 -0300)]
Snap System: fix rename `ob` to `obj`

This would bring problems with dupli objects

2 years agoDepsgraph: Initial support of armatures for copy-on-write
Sergey Sharybin [Fri, 14 Jul 2017 12:56:54 +0000 (14:56 +0200)]
Depsgraph: Initial support of armatures for copy-on-write

This commit makes simple cases to work, for example:

- IK solver to an external object
- Object with Armature modifier, "parented" to the deforming armature
  (via animation).

More complicated setups (like agent rig) are crashing still.

2 years agoAnother fix for snapping after merge in 2.8
Dalai Felinto [Fri, 14 Jul 2017 13:06:17 +0000 (15:06 +0200)]
Another fix for snapping after merge in 2.8

2 years agoFix snap in 2.8 after poor merge from master
Dalai Felinto [Fri, 14 Jul 2017 12:42:15 +0000 (14:42 +0200)]
Fix snap in 2.8 after poor merge from master

If you merge from master to blender2.8 after a commit, remember to test in 2.8, otherwise what is the point?
Specially if it's a non-essential commit such as c9817c67fc141ca85a6e1f9e42d9fa.

Bug introduced on: f4155d3778ba883566eeb87d16218c4c275ffc (the merge
that included the above commit).

2 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Dalai Felinto [Fri, 14 Jul 2017 12:34:46 +0000 (14:34 +0200)]
Merge remote-tracking branch 'origin/master' into blender2.8

2 years agoRevert "Fix T51794: Crash on hair file when opening with no UI"
Dalai Felinto [Fri, 14 Jul 2017 09:44:26 +0000 (11:44 +0200)]
Revert "Fix T51794: Crash on hair file when opening with no UI"

This reverts commit 0095f4f83465bc9fdc13b79d2126f5623e291d7c.

2 years agoWorkspace: Fix crash on preview, and sanitize placeholder functions
Dalai Felinto [Fri, 14 Jul 2017 09:16:25 +0000 (11:16 +0200)]
Workspace: Fix crash on preview, and sanitize placeholder functions

This commit effectively makes workspace switching useless as far as the
active scene layer goes.

The functions from the scene layer API to get the correct scene layer
from "context" were a placeholder to be addressed by the workspace
commit.

When workspace was merged, however G.main was used as a replacement to pass the
correct argument for the functions. As it turned out (surprise!) this
leads to crash on render preview.

We need to get rid of:
* BKE_scene_layer_context_active_ex_PLACEHOLDER
* BKE_scene_layer_context_active_PLACEHOLDER

And either use SceneLayer explicitly or replace it by:
* BKE_scene_layer_from_workspace_get

2 years agoFix unit test error on Windows
Sybren A. Stüvel [Fri, 14 Jul 2017 07:53:20 +0000 (09:53 +0200)]
Fix unit test error on Windows

2 years agoCleanup: use 'r_' prefix for return args
Campbell Barton [Fri, 14 Jul 2017 07:05:22 +0000 (17:05 +1000)]
Cleanup: use 'r_' prefix for return args

2 years agoCleanup: long lines
Campbell Barton [Fri, 14 Jul 2017 06:56:02 +0000 (16:56 +1000)]
Cleanup: long lines

2 years agoDwM: Show face-mask overlay even with full-shading
Campbell Barton [Fri, 14 Jul 2017 06:45:47 +0000 (16:45 +1000)]
DwM: Show face-mask overlay even with full-shading

Without this face selection would be used but invisible,
display this over fully shaded surface.

2 years agoFix T51945: LMB select swaps manipulator buttons
Campbell Barton [Fri, 14 Jul 2017 06:14:19 +0000 (16:14 +1000)]
Fix T51945: LMB select swaps manipulator buttons

2 years agoFix T51979: Eevee: Bloom artifacts w/ zero area faces
Campbell Barton [Fri, 14 Jul 2017 05:27:08 +0000 (15:27 +1000)]
Fix T51979: Eevee: Bloom artifacts w/ zero area faces

2 years agoRevert "Eevee: Fix the NaN pixel issue."
Campbell Barton [Thu, 13 Jul 2017 11:45:39 +0000 (21:45 +1000)]
Revert "Eevee: Fix the NaN pixel issue."

This reverts commit d02711ed883ee0d1844d49d39a8814aca5b029c3.

2 years agoMerge branch 'master' of git@git.blender.org:blender.git into blender2.8
mano-wii [Thu, 13 Jul 2017 23:12:17 +0000 (20:12 -0300)]
Merge branch 'master' of git@git.blender.org:blender.git into blender2.8

# Conflicts:
# source/blender/editors/transform/transform_snap_object.c

2 years agoSnap System: Replace creation and destruction of the object list by a Macro
mano-wii [Thu, 13 Jul 2017 22:39:17 +0000 (19:39 -0300)]
Snap System: Replace creation and destruction of the object list by a Macro

The macro got a little strange, but it's better than using the MEM_mallocN inside a loop, or repeat the lines

2 years agoMerge branch 'master' into blender2.8
Antonio Vazquez [Thu, 13 Jul 2017 16:05:20 +0000 (18:05 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: Fix MSVC warning message
Antonio Vazquez [Thu, 13 Jul 2017 15:54:24 +0000 (17:54 +0200)]
Cleanup: Fix MSVC warning message

The const key is required by compiler to avoid warning

2 years agoMerge branch 'master' into blender2.8
Sybren A. Stüvel [Thu, 13 Jul 2017 15:36:52 +0000 (17:36 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix compilation error in Freestyle
Sergey Sharybin [Thu, 13 Jul 2017 15:20:24 +0000 (17:20 +0200)]
Fix compilation error in Freestyle