2 years agoDepsgraph: Fix crash removing object when CoW is enabled
Sergey Sharybin [Mon, 20 Nov 2017 11:45:51 +0000 (12:45 +0100)]
Depsgraph: Fix crash removing object when CoW is enabled

Not sure why that check was even done there. Maybe some residue of debug.

2 years agoDepsgraph: Remove workarounds used for cyclic dependencies
Sergey Sharybin [Mon, 20 Nov 2017 11:37:11 +0000 (12:37 +0100)]
Depsgraph: Remove workarounds used for cyclic dependencies

This was dangerous to do such calculations, and now it is solvable by making
dependency graph more granular in this case. Removing the workaround also saves
us a hassle of passing lots of extra arguments down the evaluation routines.

In theory, we can also remove EvaluationCOntext from constraints evaluation as
well now. But probably better to wait with such removal for now.

This commit effectively reverts 1130c53. Will do a proper fix in dependency
graph itself.

2 years agoEevee: SSS: Fix error in profile computation.
Clément Foucault [Mon, 20 Nov 2017 21:04:14 +0000 (22:04 +0100)]
Eevee: SSS: Fix error in profile computation.

2 years agoAvoid passing context to motion path calculation
Campbell Barton [Mon, 20 Nov 2017 11:33:16 +0000 (22:33 +1100)]
Avoid passing context to motion path calculation

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 20 Nov 2017 09:45:03 +0000 (20:45 +1100)]
Merge branch 'master' into blender2.8

2 years agoUV Cube Project: improve default behavior
Campbell Barton [Mon, 20 Nov 2017 08:51:19 +0000 (19:51 +1100)]
UV Cube Project: improve default behavior

- initialize the cube-size from the bounding box when it's not set.
- no longer wrap faces to keep in 0-1 bounds,
  other projection methods don't do this and calculating the scale
  prevents the UV's from being too far outside the view.

2 years agoFix T53342: Outliner 'select hierarchy' broken
Campbell Barton [Mon, 20 Nov 2017 05:01:04 +0000 (16:01 +1100)]
Fix T53342: Outliner 'select hierarchy' broken

Was using cursor position from within menu,
clicking on the same position for every selected item (toggling).

Now operate on each selected outliner element, without toggling.

2 years agoFix crash accessing line-style
Campbell Barton [Mon, 20 Nov 2017 03:38:22 +0000 (14:38 +1100)]
Fix crash accessing line-style

2 years agoFix crash w/ NULL freestyle config
Campbell Barton [Mon, 20 Nov 2017 03:35:41 +0000 (14:35 +1100)]
Fix crash w/ NULL freestyle config

2 years agoCleanup: line length, right shift
Campbell Barton [Mon, 20 Nov 2017 03:28:24 +0000 (14:28 +1100)]
Cleanup: line length, right shift

2 years agoCleanup: BLI headers first
Campbell Barton [Mon, 20 Nov 2017 03:11:45 +0000 (14:11 +1100)]
Cleanup: BLI headers first

Also move descriptions into doxy header

2 years agoFix T53343: Custom Normal Data Transfer Crashes when some vertexes have no faces.
Bastien Montagne [Sun, 19 Nov 2017 19:42:55 +0000 (20:42 +0100)]
Fix T53343: Custom Normal Data Transfer Crashes when some vertexes have no faces.

Odd nobody noticed this earlier, was obvious bug in code logic here... :/

To be backported to 2.79a.

2 years agoOption not to select with un-hide
Campbell Barton [Sun, 19 Nov 2017 15:28:07 +0000 (02:28 +1100)]
Option not to select with un-hide

D1518 from @mba105 w/ edits

2 years agoCleanup: remove BKE_utildefines
Campbell Barton [Sun, 19 Nov 2017 14:35:49 +0000 (01:35 +1100)]
Cleanup: remove BKE_utildefines

This was meant to be used for less general macros but was never used.


2 years agoFix: Undo pushes were missing for Add/Remove Driver Variable buttons, and Remove...
Joshua Leung [Sun, 19 Nov 2017 14:06:13 +0000 (03:06 +1300)]
Fix: Undo pushes were missing for Add/Remove Driver Variable buttons, and Remove Driver button

2 years agoCleanup - Style
Joshua Leung [Sun, 19 Nov 2017 13:56:40 +0000 (02:56 +1300)]
Cleanup - Style

2 years agoFix T53300: Bone Extrude via Ctrl + Click is not done from active bone tail
Joshua Leung [Sun, 19 Nov 2017 13:55:17 +0000 (02:55 +1300)]
Fix T53300: Bone Extrude via Ctrl + Click is not done from active bone tail

2 years agoFix compiler warning
Joshua Leung [Sun, 19 Nov 2017 13:08:55 +0000 (02:08 +1300)]
Fix compiler warning

--> render_result.c:832 - formal parameter 6 different from declaration

2 years agoFix: "Lock Markers" option was not being obeyed by the "Sync Markers (when transformi...
Joshua Leung [Sun, 19 Nov 2017 12:47:21 +0000 (01:47 +1300)]
Fix: "Lock Markers" option was not being obeyed by the "Sync Markers (when transforming)" option

2 years agoBake Action operator: Added missing Bendy Bones support
Joshua Leung [Sun, 19 Nov 2017 12:32:03 +0000 (01:32 +1300)]
Bake Action operator: Added missing Bendy Bones support

2 years agoTweaks to make it easier to update bone motion paths (without the active bone needing...
Joshua Leung [Sun, 19 Nov 2017 12:00:27 +0000 (01:00 +1300)]
Tweaks to make it easier to update bone motion paths (without the active bone needing to have any paths itself)

This commit introduces the following changes:
* Modified the poll callback on the "Update Paths" operator for bones
  so that it only checks if there are bones that have motion paths
  (instead of checking whether the active bone has paths).

  This makes it easier to update paths without having to first select one
  that has them - useful when the paths are all on hidden/hard-to-select bones.

* Add a readonly property, "has_motion_paths" to the animviz.motion_path
  RNA struct, providing easier access to the internal flag used above.
  This makes it possible for the UI to display the "Update" button without
  having to check various bones for motion paths.

* The flag being used in these changes already existed, and was only really
  intended for internal use. However, since it was already used in many places
  for determining if auto-update of all bone paths was needed (e.g. after certain
  editing ops), it should be safe to use here too.

* The update_paths operator currently bakes all paths when activated, so there's
  currently no loss of functionality with changing to not checking if the active
  bone has any paths (e.g. we couldn't only update the active bone only either).
  That is still listed as a todo in the code.

2 years agoPasting poses now updates motion paths
Joshua Leung [Sun, 19 Nov 2017 11:31:07 +0000 (00:31 +1300)]
Pasting poses now updates motion paths

2 years agoFix T53229: "Sample Keyframes" errors with multiple pairs of keyframes selected
Joshua Leung [Sun, 19 Nov 2017 11:28:03 +0000 (00:28 +1300)]
Fix T53229: "Sample Keyframes" errors with multiple pairs of keyframes selected

There were 2 issues here (first was the one reported):
1) Curve shape changes if multiple consecutive pairs of keyframes
   are selected. The problem is that after the first pair is handled,
   subsequent pairs get sampled on the basis of the modified curve.

2) With multiple separate "islands" selected, unselected points in between
   would get ignored, causing the entire curve to get sampled.

2 years agoMerge branch 'master' into blender2.8
Julian Eisel [Sun, 19 Nov 2017 12:16:14 +0000 (13:16 +0100)]
Merge branch 'master' into blender2.8

2 years agoSwap priority of system path overrides for dev builds
Julian Eisel [Sun, 19 Nov 2017 11:24:12 +0000 (12:24 +0100)]
Swap priority of system path overrides for dev builds

Suggested by Campbell, thanks!

Also moved the exception into own function and improved comments.

Fixes T53008.

2 years agoVertex Paint: missed removing settings from UI
Campbell Barton [Sun, 19 Nov 2017 06:00:56 +0000 (17:00 +1100)]
Vertex Paint: missed removing settings from UI

2 years agoFix T53347: Vertex paint crash on undo/exit
Campbell Barton [Sun, 19 Nov 2017 05:45:27 +0000 (16:45 +1100)]
Fix T53347: Vertex paint crash on undo/exit

2 years agoEevee : Fix bug with SSS and SSR active node selection
Clément Foucault [Sat, 18 Nov 2017 21:14:53 +0000 (22:14 +0100)]
Eevee : Fix bug with SSS and SSR active node selection

The bug was affecting the ability to correctly edit the expected SSS profile.

2 years agoCMake: remove solaris path
Campbell Barton [Sat, 18 Nov 2017 16:46:50 +0000 (03:46 +1100)]
CMake: remove solaris path

2 years agoCleanup: outdated comment
Campbell Barton [Sat, 18 Nov 2017 16:25:52 +0000 (03:25 +1100)]
Cleanup: outdated comment

2 years agoCleanup: style
Campbell Barton [Sat, 18 Nov 2017 06:22:54 +0000 (17:22 +1100)]
Cleanup: style

2 years agoFix BGE sound actuator property access
Campbell Barton [Sat, 18 Nov 2017 06:16:25 +0000 (17:16 +1100)]
Fix BGE sound actuator property access

2 years agoAdd select similar custom bone shape
Campbell Barton [Sat, 18 Nov 2017 02:52:02 +0000 (13:52 +1100)]
Add select similar custom bone shape

D2820 by @col-one w/ edits

2 years agoMikktspace: Speed up the merging of identical vertices
Lukas Stockner [Sun, 4 Jun 2017 21:04:47 +0000 (23:04 +0200)]
Mikktspace: Speed up the merging of identical vertices

Previously, Mikktspace just bucketed the vertices based on one spatial coordinate and then ran full pairwise comparisons inside each bucket.
However, since models are three-dimensional, the bucketing has a massive false-positive rate, and since pairwise comparison is O(n^2), the merging process is very slow.

But, since we only care about exactly identical vertices, there is a much more efficient approach - we can just hash all values belonging to each vertex and form buckets based on the hash.
Since the hash has 32 bits and considers all values, false-positives are very unlikely - and since both hashing and the radixsort that's used for bucketing are O(n), both asymptotical and
real-world performance (as well as code complexity) are significantly improved.

2 years agoDepsgraph: Fix assert/crash when transforming from redo system
Sergey Sharybin [Fri, 17 Nov 2017 15:53:06 +0000 (16:53 +0100)]
Depsgraph: Fix assert/crash when transforming from redo system

Redo system will set depsgraph to NULL, so need to ensure it exists.

Reported by Julian in IRC, thanks!

2 years agoCycles: Add per-tile render time debug pass
Lukas Stockner [Fri, 17 Nov 2017 13:23:48 +0000 (14:23 +0100)]
Cycles: Add per-tile render time debug pass

Reviewers: sergey, brecht

Differential Revision:

2 years agoCycles: Add Volume Direct and Volume Indirect passes for volume-scattered light
Lukas Stockner [Tue, 14 Nov 2017 06:21:07 +0000 (07:21 +0100)]
Cycles: Add Volume Direct and Volume Indirect passes for volume-scattered light

No color pass because it's hard to define what to use as color in a volume.

Reviewers: sergey, brecht

Differential Revision:

2 years agoCycles: Refactor PassType from bitflag to index in order to allow for more passes
Lukas Stockner [Tue, 14 Nov 2017 06:20:02 +0000 (07:20 +0100)]
Cycles: Refactor PassType from bitflag to index in order to allow for more passes

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 17 Nov 2017 14:28:36 +0000 (15:28 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Add missing checks from previous commit
Sergey Sharybin [Fri, 17 Nov 2017 14:27:02 +0000 (15:27 +0100)]
Depsgraph: Add missing checks from previous commit

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 17 Nov 2017 14:00:27 +0000 (15:00 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Don't make non-dynamic hair dependent on time
Sergey Sharybin [Fri, 17 Nov 2017 13:56:51 +0000 (14:56 +0100)]
Depsgraph: Don't make non-dynamic hair dependent on time

This way hair system used for static forest does not make playblack slow.

A bit dangerous, but let's see how far we can go!

2 years agoFix UV Projection Center Calculation
Campbell Barton [Fri, 17 Nov 2017 11:30:28 +0000 (22:30 +1100)]
Fix UV Projection Center Calculation

UV project mixed up global/local space,
3D cursor offset didn't take object scale into account.

Minor improvements:

- Match Cube Project 'center' behavior w/ sphere & cylinder.
- Add active-element center.
- Wrap UV's in Cube Project based on center instead of first vertex.

2 years agoCleanup: warnings
Campbell Barton [Fri, 17 Nov 2017 08:02:38 +0000 (19:02 +1100)]
Cleanup: warnings

2 years agoFix error when compiling with msvc
Germano [Fri, 17 Nov 2017 02:30:07 +0000 (00:30 -0200)]
Fix error when compiling with msvc

'function': incompatible types - from 'int *' to 'short *'

2 years agoEevee: SSS: Add cubic profile for the sake of completeness.
Clément Foucault [Fri, 17 Nov 2017 01:00:48 +0000 (02:00 +0100)]
Eevee: SSS: Add cubic profile for the sake of completeness.

It wasnt really hard except from the wierd sharpness 0.5 multiplication.

2 years agoEevee: SSS: Add SSS to the principled shader.
Clément Foucault [Thu, 16 Nov 2017 20:29:48 +0000 (21:29 +0100)]
Eevee: SSS: Add SSS to the principled shader.

2 years agoEevee: SSS: Add Christensen-Burley diffusion profile.
Clément Foucault [Thu, 16 Nov 2017 20:28:40 +0000 (21:28 +0100)]
Eevee: SSS: Add Christensen-Burley diffusion profile.

This seems to be a correct implementation of the same diffusion profile as Cycles uses by default.

There are a few bias though:
- We consider _A_ the albedo to be 1 when evaluating _s_.
- We use a factor of 0.6 when computing _d_ to match more or less cycles results.

Note that doing per pixel jittering does bias the result even further (loss of energy).

2 years agoFix T51210: Draw Manager: Support for Metaball Drawing
Germano [Thu, 16 Nov 2017 17:12:32 +0000 (15:12 -0200)]
Fix T51210: Draw Manager: Support for Metaball Drawing

Differential Revision: D2914

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 16 Nov 2017 11:50:53 +0000 (12:50 +0100)]
Merge branch 'master' into blender2.8

2 years agoBLI listbase: add bytes finding helpers.
Bastien Montagne [Thu, 16 Nov 2017 11:49:31 +0000 (12:49 +0100)]
BLI listbase: add bytes finding helpers.

Quite similar to string ones actually, except more generic. Used in
id_override_static branch currently.

2 years agoCycles: Fix crash with split branched path tracing
Mai Lavelle [Thu, 16 Nov 2017 08:32:02 +0000 (03:32 -0500)]
Cycles: Fix crash with split branched path tracing

ShaderData memory was getting clobbered in the branched path code paths.

Was caused by 087331c495b04ebd37903c0dc0e46262354cf026

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 15 Nov 2017 12:17:25 +0000 (23:17 +1100)]
Merge branch 'master' into blender2.8

2 years agoBLI_utildefines: sync w/ 2.8
Campbell Barton [Wed, 15 Nov 2017 12:06:34 +0000 (23:06 +1100)]
BLI_utildefines: sync w/ 2.8

2 years agoCleanup: use 'uint'
Campbell Barton [Wed, 15 Nov 2017 11:50:25 +0000 (22:50 +1100)]
Cleanup: use 'uint'

2 years agoCycles: Fix after recent merge from master
Dalai Felinto [Wed, 15 Nov 2017 11:50:51 +0000 (09:50 -0200)]
Cycles: Fix after recent merge from master

random_id() crashes when there is no current dupli object.

We could also throw a Python error when doing it via RNA, but as far as
Cycles is concerned we need to check if instanced.

2 years agoGSet: utils to access data stored outside the set
Campbell Barton [Wed, 15 Nov 2017 11:45:37 +0000 (22:45 +1100)]
GSet: utils to access data stored outside the set

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 15 Nov 2017 09:46:19 +0000 (10:46 +0100)]
Merge branch 'master' into blender2.8


2 years agoMerge commit '212a8d9e5ae7' into blender2.8
Dalai Felinto [Wed, 15 Nov 2017 09:11:01 +0000 (07:11 -0200)]
Merge commit '212a8d9e5ae7' into blender2.8

Considerable non-trivial merge conflict fixes.

2 years agoMerge commit '212a8d9e5ae7^' into blender2.8
Dalai Felinto [Wed, 15 Nov 2017 09:07:27 +0000 (07:07 -0200)]
Merge commit '212a8d9e5ae7^' into blender2.8

2 years agoFix T53309: Remove default 'Clear loc/rot/scale delta transform' shortcuts.
Bastien Montagne [Tue, 14 Nov 2017 21:47:42 +0000 (22:47 +0100)]
Fix T53309: Remove default 'Clear loc/rot/scale delta transform' shortcuts.

The loc one (shift-alt-G) was same as 'remove selected from active group'
action... Clear delta transform is not a common operation, so we can
live without a default shortcut for it.

Note that using same key (G) in same space for two completely different
kind of operations is probably a rather bad thing, nice topic for future
keymap work. ;)

Probably nice to have in 2.79a.

2 years agoCleanup: order from a-z structs in BKE_collection.h and BKE_layer.h
Dalai Felinto [Tue, 14 Nov 2017 20:39:40 +0000 (18:39 -0200)]
Cleanup: order from a-z structs in BKE_collection.h and BKE_layer.h

2 years agoEevee: SSS: Fix SSS with Add Shader node.
Clément Foucault [Tue, 14 Nov 2017 20:34:20 +0000 (21:34 +0100)]
Eevee: SSS: Fix SSS with Add Shader node.

2 years agoEevee: Add SSS objects to probe rendering.
Clément Foucault [Tue, 14 Nov 2017 20:13:38 +0000 (21:13 +0100)]
Eevee: Add SSS objects to probe rendering.

This does NOT do the SSS diffusion when rendering probe but at least you can see your object without SSS in reflections / bounce light.

2 years agoFix Opengl Error with glBlitFramebuffer
Clément Foucault [Tue, 14 Nov 2017 19:49:13 +0000 (20:49 +0100)]
Fix Opengl Error with glBlitFramebuffer

This was caused by 93936b8643b9c4f77fe13d35b41ecaa246843dd8

From GL spec :
GL_INVALID_OPERATION is generated if mask contains GL_DEPTH_BUFFER_BIT or GL_STENCIL_BUFFER_BIT and the source and destination depth and stencil formats do not match.

So blitting framebuffer with depth or stencil require the SAME FORMAT.

2 years agoSmoke: Pass non-trivial arguments by const reference
Sergey Sharybin [Tue, 14 Nov 2017 16:11:25 +0000 (17:11 +0100)]
Smoke: Pass non-trivial arguments by const reference

2 years agoFix compilation error with clang-5
Sergey Sharybin [Tue, 14 Nov 2017 16:00:54 +0000 (17:00 +0100)]
Fix compilation error with clang-5

2 years agoAlembic: Fix mismatch in forward declaration with definition
Sergey Sharybin [Tue, 14 Nov 2017 15:50:19 +0000 (16:50 +0100)]
Alembic: Fix mismatch in forward declaration with definition

2 years agoFix missing SpinLock typedef on macOS
Arto Kitula [Tue, 14 Nov 2017 14:51:34 +0000 (16:51 +0200)]
Fix missing SpinLock typedef on macOS

2 years agoAdd stdlib include for utildefines
Campbell Barton [Tue, 14 Nov 2017 12:38:53 +0000 (23:38 +1100)]
Add stdlib include for utildefines

Ideally we could just declare abort, but this has attributes
based on the platform, so include stdlib instead.

2 years agoFix T53068: AMD Threadripper not working well with Blender
Sergey Sharybin [Tue, 14 Nov 2017 11:21:15 +0000 (12:21 +0100)]
Fix T53068: AMD Threadripper not working well with Blender

The issue was caused by SpinLock implementation in old pthreads we ar eusing on
Windows. Using newer one (2.10-rc) demonstrates same exact behavior. But likely
using own atomics and memory barrier based implementation solves the issue.

A bit annoying that we need to change such a core part of Blender just to make
specific CPU happy, but it's better to have artists happy on all computers.

There is no expected downsides of this change, but it is so called "works for
me" category. Let's see how it all goes.

2 years agoCleanup: order BLI before BKE headers
Campbell Barton [Tue, 14 Nov 2017 06:23:40 +0000 (17:23 +1100)]
Cleanup: order BLI before BKE headers

This was done nearly everywhere already

2 years agoCleanup: remove BLI_blenlib from ghash header
Campbell Barton [Tue, 14 Nov 2017 06:00:10 +0000 (17:00 +1100)]
Cleanup: remove BLI_blenlib from ghash header

This causes source files to depend on ghash header
for BLI_string/rect/listbase.

Also quiet warnings.

2 years agoBLI: sync changes from 2.8
Campbell Barton [Tue, 14 Nov 2017 05:10:48 +0000 (16:10 +1100)]
BLI: sync changes from 2.8

2 years agoCycles: Make per-object random value output also work for Lamps
Lukas Stockner [Sun, 5 Nov 2017 20:59:17 +0000 (21:59 +0100)]
Cycles: Make per-object random value output also work for Lamps

2 years agoCycles: Refactor closure roughness detection to fix a potential bug with Denoising...
Lukas Stockner [Sun, 5 Nov 2017 20:43:23 +0000 (21:43 +0100)]
Cycles: Refactor closure roughness detection to fix a potential bug with Denoising of specular shaders

2 years agoEevee: SSS: Add Quality settings.
Clément Foucault [Tue, 14 Nov 2017 01:17:34 +0000 (02:17 +0100)]
Eevee: SSS: Add Quality settings.

Samples : pretty self explanatory.
Jitter Threshold : Reduce cache misses and improve performance (greatly) by lowering this value. This settings let user decide how many samples should be jittered (rotated) to reduce banding artifacts.

2 years agoEevee: Initial Separable Subsurface Scattering implementation.
Clément Foucault [Mon, 13 Nov 2017 23:49:54 +0000 (00:49 +0100)]
Eevee: Initial Separable Subsurface Scattering implementation.

How to use:
- Enable subsurface scattering in the render options.
- Add Subsurface BSDF to your shader.
- Check "Screen Space Subsurface Scattering" in the material panel options.

This initial implementation has a few limitations:
- only supports gaussian SSS.
- Does not support principled shader.
- The radius parameters is baked down to a number of samples and then put into an UBO. This means the radius input socket cannot be used. You need to tweak the default vector directly.
- The "texture blur" is considered as always set to 1

2 years agoDRW: Better stencil support.
Clément Foucault [Mon, 13 Nov 2017 22:33:06 +0000 (23:33 +0100)]
DRW: Better stencil support.

A stencil mask is now assigned to each shading group and the stencil test is defined like the depth test via the DRW_STATE_* defines.

2 years agoGPUTexture: Add for stencil to default depth buffers.
Clément Foucault [Mon, 13 Nov 2017 22:25:46 +0000 (23:25 +0100)]
GPUTexture: Add for stencil to default depth buffers.

Theses will be used by eevee SSS.

TODO: only allocate stencil if needed.

2 years agoGPUMaterial : Add sss_data to Closure struct.
Clément Foucault [Mon, 13 Nov 2017 20:56:49 +0000 (21:56 +0100)]
GPUMaterial : Add sss_data to Closure struct.

2 years agoFix quick smoke getting view_render from the wrong place
Dalai Felinto [Mon, 13 Nov 2017 16:15:36 +0000 (14:15 -0200)]
Fix quick smoke getting view_render from the wrong place

2 years agoCleanup on depsgraph logic
Dalai Felinto [Mon, 13 Nov 2017 14:17:14 +0000 (12:17 -0200)]
Cleanup on depsgraph logic

2 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Dalai Felinto [Mon, 13 Nov 2017 13:48:48 +0000 (11:48 -0200)]
Merge remote-tracking branch 'origin/master' into blender2.8

2 years agoDepsgraph: Fix relations for metaballs
Sergey Sharybin [Mon, 13 Nov 2017 13:43:08 +0000 (14:43 +0100)]
Depsgraph: Fix relations for metaballs

Initially spotted and investigated by Dalai and Germano.

2 years agoCycles: Fix compilation error of standalone application
Sergey Sharybin [Mon, 13 Nov 2017 09:49:05 +0000 (10:49 +0100)]
Cycles: Fix compilation error of standalone application

2 years agoCycles: Fix compilation error with OIIO compiled against system PugiXML
Sergey Sharybin [Mon, 13 Nov 2017 09:40:19 +0000 (10:40 +0100)]
Cycles: Fix compilation error with OIIO compiled against system PugiXML

2 years agoFix T53289: CUDA missing textures not showing pink, after recent changes.
Brecht Van Lommel [Sun, 12 Nov 2017 19:43:40 +0000 (20:43 +0100)]
Fix T53289: CUDA missing textures not showing pink, after recent changes.

2 years agoFix T53273: render bake settings properties not showing correct Python path.
Brecht Van Lommel [Sun, 12 Nov 2017 19:04:56 +0000 (20:04 +0100)]
Fix T53273: render bake settings properties not showing correct Python path.

2 years agoFix T53294: crash
Campbell Barton [Sun, 12 Nov 2017 05:05:28 +0000 (16:05 +1100)]
Fix T53294: crash

2 years agoBMesh Py API: Expose color alpha
Campbell Barton [Sun, 12 Nov 2017 04:48:24 +0000 (15:48 +1100)]
BMesh Py API: Expose color alpha

2 years agoGPUFramebuffer: Add possibility to blit stencil buffer.
Clément Foucault [Fri, 10 Nov 2017 22:36:05 +0000 (23:36 +0100)]
GPUFramebuffer: Add possibility to blit stencil buffer.

2 years agoCycles: Set error if a split kernel fails to load
Mai Lavelle [Sat, 11 Nov 2017 05:57:59 +0000 (00:57 -0500)]
Cycles: Set error if a split kernel fails to load

To help catch cases where adding a new kernel is missed for one of the
device implementations.

2 years agoManipulator: ruler tool
Campbell Barton [Fri, 10 Nov 2017 15:43:04 +0000 (02:43 +1100)]
Manipulator: ruler tool

Add the 3D view ruler as a tool,
the modal operator remains for now
however it may be removed if we use the tool-system for 2.8.

Note that this does copy code from the operator,
its different enough not to attempt to de-duplicate.

2 years agoManipulator: public highlight utility function
Campbell Barton [Fri, 10 Nov 2017 15:39:45 +0000 (02:39 +1100)]
Manipulator: public highlight utility function

Also utility to find group from a manipulator map.

2 years agoFix assert failure when trying to draw empty string
Sergey Sharybin [Fri, 10 Nov 2017 15:29:35 +0000 (16:29 +0100)]
Fix assert failure when trying to draw empty string

2 years agoMerge branch 'master' into blender2.8
Germano [Fri, 10 Nov 2017 15:02:49 +0000 (13:02 -0200)]
Merge branch 'master' into blender2.8

2 years agoLayers Unittest: Hidden flag to quckly update diffs
Dalai Felinto [Fri, 10 Nov 2017 14:33:03 +0000 (12:33 -0200)]
Layers Unittest: Hidden flag to quckly update diffs

This is not the commit you are looking for ...

This is not to be used lightly. But sometimes we change the name of the collections,
the initial value they have, ... and this helps to quickly update the tests.

2 years agomball_tessellate: Simplify face creation
Germano [Fri, 10 Nov 2017 14:58:34 +0000 (12:58 -0200)]
mball_tessellate: Simplify face creation

Faces that have the last two indices equal are considered triangles, and not those that the last index is 0
Improvement of 7% in performance of the `polygonize` function

2 years agoUnittest: Layers - include is_disabled for LayerCollection
Dalai Felinto [Fri, 10 Nov 2017 14:39:43 +0000 (12:39 -0200)]
Unittest: Layers - include is_disabled for LayerCollection

And remove is_folder since it is not being used.