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 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 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 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 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 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

2 years agodeps build: fix sndfile building on macOS
Arto Kitula [Tue, 19 Sep 2017 21:08:32 +0000 (00:08 +0300)]
deps build: fix sndfile building on macOS

2 years agomacOS: use python version 3.6 when building blender
Arto Kitula [Tue, 19 Sep 2017 21:07:56 +0000 (00:07 +0300)]
macOS: use python version 3.6 when building blender

2 years agodeps build: bump Python to 3.6.2 and Numpy to 1.13.1
Arto Kitula [Tue, 19 Sep 2017 21:04:23 +0000 (00:04 +0300)]
deps build: bump Python to 3.6.2 and Numpy to 1.13.1

2 years agoCorrect test ifdef in polyfill
Campbell Barton [Tue, 19 Sep 2017 18:57:48 +0000 (04:57 +1000)]
Correct test ifdef in polyfill

2 years agoFix T52834: Polyfill2D fails with co-linear edges
Campbell Barton [Tue, 19 Sep 2017 18:29:04 +0000 (04:29 +1000)]
Fix T52834: Polyfill2D fails with co-linear edges

2 years agoBLI_polyfill2d_test: add test for T52834
Campbell Barton [Tue, 19 Sep 2017 17:40:13 +0000 (03:40 +1000)]
BLI_polyfill2d_test: add test for T52834

Commented since it currently fails.

2 years agoBLI_polyfill2d_test: Try flipped x/y axis
Campbell Barton [Tue, 19 Sep 2017 17:31:32 +0000 (03:31 +1000)]
BLI_polyfill2d_test: Try flipped x/y axis

In T52834 this makes a difference.

2 years agoMerge branch 'master' into blender2.8
mano-wii [Tue, 19 Sep 2017 16:59:37 +0000 (13:59 -0300)]
Merge branch 'master' into blender2.8

2 years agotransform_snap_object: simplify IGNORE_BEHIND_RAY
mano-wii [Tue, 19 Sep 2017 16:57:59 +0000 (13:57 -0300)]
transform_snap_object: simplify IGNORE_BEHIND_RAY

`depth_get` is called in most of the time. So not worth going through so many conditions

2 years agoAudaspace: removing old device backend names.
Joerg Mueller [Tue, 19 Sep 2017 16:00:35 +0000 (18:00 +0200)]
Audaspace: removing old device backend names.

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

2 years agoDepsgraph: Fix wrong flag being assigned
Sergey Sharybin [Tue, 19 Sep 2017 15:55:15 +0000 (20:55 +0500)]
Depsgraph: Fix wrong flag being assigned

2 years agoFix T52733 Percent mode for Bevel sometimes had nans.
Howard Trickey [Tue, 19 Sep 2017 13:38:17 +0000 (09:38 -0400)]
Fix T52733 Percent  mode for Bevel sometimes had nans.

Forgot some initialization.

2 years agoFix T52818: Tangent space calculation is really slow for high-density mesh with degen...
Sergey Sharybin [Tue, 19 Sep 2017 12:46:34 +0000 (17:46 +0500)]
Fix T52818: Tangent space calculation is really slow for high-density mesh with degenerated topology

Now we replace O(N^2) computational complexity with O(N) extra memory penalty.
Memory is much cheaper than CPU time. Keep in mind, memory penalty is like
4 megabytes per 1M vertices.

2 years agoMikkspace: Cleanup, reduce indentation level
Sergey Sharybin [Tue, 19 Sep 2017 12:00:48 +0000 (17:00 +0500)]
Mikkspace: Cleanup, reduce indentation level

2 years agoFix T52816: regression can't open file in 2.79 (crash).
Bastien Montagne [Tue, 19 Sep 2017 11:57:46 +0000 (13:57 +0200)]
Fix T52816: regression can't open file in 2.79 (crash).

Tentative fix, since I cannot reproduce thenissue for some reason here
on linux.

Core of the problem is pretty clear though, thanks to Germano Cavalcante
(@mano-wii): another thread could try to use looptris data after worker
one had allocated it, but before it had actually computed looptris.

So now, we use a temp 'wip' pointer to store looptris being computed
(since this is protected by a mutex, other threads will have to wait on
it, no possibility for them to double-compute the looptris here).

This should probably be backported to 2.79a if done.

2 years agoFix T52823: New Depsgraph - Shrinkwrap crashes blender
Sergey Sharybin [Tue, 19 Sep 2017 11:09:35 +0000 (16:09 +0500)]
Fix T52823: New Depsgraph - Shrinkwrap crashes blender

The issue was caused by threading conflict around looptris: it was possible
that DM will return non-NULL but non-initialized array of looptris.

Thanks Campbell for second pair of eyes!

2 years agoCMake: update for renamed headers
Campbell Barton [Tue, 19 Sep 2017 10:25:20 +0000 (20:25 +1000)]
CMake: update for renamed headers

2 years agoBLI_utildefines_iter: Use for iteration helpers
Campbell Barton [Tue, 19 Sep 2017 10:21:52 +0000 (20:21 +1000)]
BLI_utildefines_iter: Use for iteration helpers

2 years agoCleanup: BLI_utildefines prefix for header-only libs
Campbell Barton [Tue, 19 Sep 2017 10:16:05 +0000 (20:16 +1000)]
Cleanup: BLI_utildefines prefix for header-only libs

This allows to have different macro headers without them sharing
similar names to regular C modules.

2 years agoBoolean Modifier: add debug options
Campbell Barton [Tue, 19 Sep 2017 08:29:52 +0000 (18:29 +1000)]
Boolean Modifier: add debug options

Only show & use when running in debug mode.

2 years agoFix T52811: At any framerate selected, video exported with 1000fps
Sergey Sharybin [Tue, 19 Sep 2017 06:30:37 +0000 (11:30 +0500)]
Fix T52811: At any framerate selected, video exported with 1000fps

2 years agoAvoid bias when calculating quad split direction
Campbell Barton [Tue, 19 Sep 2017 05:03:58 +0000 (15:03 +1000)]
Avoid bias when calculating quad split direction

Some error checks weren't being done in both directions
when calculating the best split direction for a quad.

2 years agoCorrect recent error in boolean quad split check
Campbell Barton [Tue, 19 Sep 2017 04:25:37 +0000 (14:25 +1000)]
Correct recent error in boolean quad split check

2 years agoFix compiler warning
Joshua Leung [Tue, 19 Sep 2017 04:20:51 +0000 (16:20 +1200)]
Fix compiler warning

2 years agoAdd some security checks against future bad float UIprecision values.
Bastien Montagne [Mon, 18 Sep 2017 17:50:40 +0000 (19:50 +0200)]
Add some security checks against future bad float UIprecision values.

This commit and previous one should be backported to 2.79a should we
release it.

2 years agoFix (irc-reported by @sergey) invalid precision value in a float RNA property.
Bastien Montagne [Mon, 18 Sep 2017 17:18:02 +0000 (19:18 +0200)]
Fix (irc-reported by @sergey) invalid precision value in a float RNA property.

Maximum allowed UI float precision value is 6 (which means 7 digits).

Will change code checking on that in next commit.

2 years ago[cmake/dependencies] Update libsndfile to 1.0.28
Ray Molenkamp [Mon, 18 Sep 2017 16:54:37 +0000 (10:54 -0600)]
[cmake/dependencies] Update libsndfile to 1.0.28

2 years agoFix T52813: Audaspace: Leak when loading factory settings
Dalai Felinto [Mon, 18 Sep 2017 14:05:16 +0000 (16:05 +0200)]
Fix T52813: Audaspace: Leak when loading factory settings

Patch by Joerg Mueller (neXyon) with some touchups by me.

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

2 years agoCleanup: use clamped rounding functions
Campbell Barton [Mon, 18 Sep 2017 11:11:41 +0000 (21:11 +1000)]
Cleanup: use clamped rounding functions

2 years agoMath Lib: clamped rounding utility functions
Campbell Barton [Mon, 18 Sep 2017 11:03:10 +0000 (21:03 +1000)]
Math Lib: clamped rounding utility functions

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:

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:

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 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:

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:

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.