blender.git
2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 4 Jan 2018 09:36:50 +0000 (10:36 +0100)]
Merge branch 'master' into blender2.8

2 years agoFix uninitialized stack use in rna diff override
Campbell Barton [Thu, 4 Jan 2018 05:15:31 +0000 (16:15 +1100)]
Fix uninitialized stack use in rna diff override

2 years agoFix T53586: Surfaces collapse when joined
Campbell Barton [Thu, 4 Jan 2018 05:01:27 +0000 (16:01 +1100)]
Fix T53586: Surfaces collapse when joined

2 years agoFix T53637: Keymap from app-template ignored
Campbell Barton [Thu, 4 Jan 2018 03:07:45 +0000 (14:07 +1100)]
Fix T53637: Keymap from app-template ignored

Addon's were also ignored

2 years agotests: limit public API in view_layer_common
Campbell Barton [Thu, 4 Jan 2018 00:57:45 +0000 (11:57 +1100)]
tests: limit public API in view_layer_common

2 years agotests: replace boiler-plate with util function
Campbell Barton [Thu, 4 Jan 2018 00:28:46 +0000 (11:28 +1100)]
tests: replace boiler-plate with util function

This crept back in somehow!

2 years agoFix FOREACH_SCENE_COLLECTION/FOREACH_SCENE_OBJECT for nested collections
Dalai Felinto [Wed, 3 Jan 2018 21:28:19 +0000 (19:28 -0200)]
Fix FOREACH_SCENE_COLLECTION/FOREACH_SCENE_OBJECT for nested collections

This fixes any function that relied on these iterators such as:
* Outliner Same Type
* Metaballs
* scene.objects

We were not considering the collections when there was collections nested
to the collections nested to the master collection.

It includes a unittest.

2 years agoOutliner/Collections: Remove selected objects operator
Dalai Felinto [Wed, 3 Jan 2018 20:27:35 +0000 (18:27 -0200)]
Outliner/Collections: Remove selected objects operator

This is part of T53495.

2 years agoOutliner/Collections: Add selected objects operator
Dalai Felinto [Wed, 3 Jan 2018 19:58:01 +0000 (17:58 -0200)]
Outliner/Collections: Add selected objects operator

This is part of T53495.

2 years agoOutliner: Right mouse menu for collections editing
Dalai Felinto [Wed, 3 Jan 2018 12:32:55 +0000 (10:32 -0200)]
Outliner: Right mouse menu for collections editing

2 years agoStatic assert for correct strings from context mode enum.
Lukas Tönne [Wed, 3 Jan 2018 13:10:42 +0000 (13:10 +0000)]
Static assert for correct strings from context mode enum.

Adding new context modes requires adding a string in CTX_data_mode_string,
but there is no error when omitting this other than panels using
incorrect contexts. The static assert should help detect simple
missing strings at least to avoid confusing errors.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 3 Jan 2018 13:09:10 +0000 (00:09 +1100)]
Merge branch 'master' into blender2.8

2 years agobuild deps: llvm new website download locations
Arto Kitula [Wed, 3 Jan 2018 12:52:25 +0000 (14:52 +0200)]
build deps: llvm new website download locations

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 3 Jan 2018 12:44:47 +0000 (23:44 +1100)]
Merge branch 'master' into blender2.8

2 years agoNew API function to call an existing menu
Dalai Felinto [Wed, 3 Jan 2018 12:16:26 +0000 (10:16 -0200)]
New API function to call an existing menu

Thanks Campbell Barton for the help and review.
This is for Blender 2.8, so we are not using this function yet.

2 years agoMissing from last commit
Campbell Barton [Wed, 3 Jan 2018 11:01:40 +0000 (22:01 +1100)]
Missing from last commit

2 years agoFix T53632: Objects outside scene shown in popup
Campbell Barton [Wed, 3 Jan 2018 10:54:02 +0000 (21:54 +1100)]
Fix T53632: Objects outside scene shown in popup

Only show objects in current scene when not pinned.

This commit adds a filter argument to id-template
since we may want to filter by other criteria.

2 years agoFix T53678: Smart Project UV margin ignores units
Campbell Barton [Wed, 3 Jan 2018 05:10:41 +0000 (16:10 +1100)]
Fix T53678: Smart Project UV margin ignores units

2 years agoFix an error on last commit
Germano [Wed, 3 Jan 2018 01:44:01 +0000 (23:44 -0200)]
Fix an error on last commit

`count` here is multiplied by 4.

2 years agoFix crash when you change the curve resolution in Edit Mode of the Blender Render...
Germano [Wed, 3 Jan 2018 01:31:28 +0000 (23:31 -0200)]
Fix crash when you change the curve resolution in Edit Mode of the Blender Render engine

Same problem as previous commit, but now in `drawobject.c`.
Also added a comment to the equivalent line in `draw_cache_imp_curve.c`.

2 years agoCurve Edit Mode: Fix crash when the U-resolution of the curve is changed
Germano [Wed, 3 Jan 2018 01:09:51 +0000 (23:09 -0200)]
Curve Edit Mode: Fix crash when the U-resolution of the curve is changed

`normal_len` did not follow the value of the loop that is executed to add the vertices, being different from the vbo size

2 years agoFix: MSVC2013 compile problems with the "inline" keyword
Joshua Leung [Tue, 2 Jan 2018 23:58:19 +0000 (12:58 +1300)]
Fix: MSVC2013 compile problems with the "inline" keyword

2 years agoCycles: CUDA support for rendering scenes that don't fit on GPU.
Brecht Van Lommel [Fri, 3 Nov 2017 23:33:38 +0000 (00:33 +0100)]
Cycles: CUDA support for rendering scenes that don't fit on GPU.

In that case it can now fall back to CPU memory, at the cost of reduced
performance. For scenes that fit in GPU memory, this commit should not
cause any noticeable slowdowns.

We don't use all physical system RAM, since that can cause OS instability.
We leave at least half of system RAM or 4GB to other software, whichever
is smaller.

For image textures in host memory, performance was maybe 20-30% slower
in our tests (although this is highly hardware and scene dependent). Once
other type of data doesn't fit on the GPU, performance can be e.g. 10x
slower, and at that point it's probably better to just render on the CPU.

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

2 years agoCycles: make CUDA code a bit more robust to host/device alloc failures.
Brecht Van Lommel [Tue, 2 Jan 2018 21:56:07 +0000 (22:56 +0100)]
Cycles: make CUDA code a bit more robust to host/device alloc failures.

Fixes a few corner cases found while stress testing host mapped memory.

2 years agoLayers/Collections: Fix crash when deleting collection
Dalai Felinto [Tue, 2 Jan 2018 20:19:25 +0000 (18:19 -0200)]
Layers/Collections: Fix crash when deleting collection

If the collection to be deleted has a nested collection that is directly linked
to a view layer, we were getting a crash.

2 years agoLayers: Fix operator_context unittest
Dalai Felinto [Tue, 2 Jan 2018 19:42:20 +0000 (17:42 -0200)]
Layers: Fix operator_context unittest

This was broken since 70cdc8412c478b when we changed the requirement for context
scene collection to be part of context view layer.

2 years agoLayers: Fix collection_rename unittest
Dalai Felinto [Tue, 2 Jan 2018 18:59:25 +0000 (16:59 -0200)]
Layers: Fix collection_rename unittest

This was broken since c9cb5dc3dab0af when we supported same name for
non-sibling collections.

2 years agoOutliner: Master Collection always expanded
Dalai Felinto [Tue, 2 Jan 2018 16:00:03 +0000 (14:00 -0200)]
Outliner: Master Collection always expanded

This is part of T53495.

This makes sure the master collection is always expanded and you don't even get
the expand/collapse icons for it.

This is only for the Collecions (currently Master Collection Tree) option, not
for active view layer.

2 years agoOutliner: Always show the master collection on top of the tree
Dalai Felinto [Tue, 2 Jan 2018 14:30:48 +0000 (12:30 -0200)]
Outliner: Always show the master collection on top of the tree

This reverts commit 0d0d68d39dad8e14b80489bc28d591fc6eff5f21 with extra changes.

This is part of T53495.

2 years agoOutliner/Collections: Don't link a collection after creation
Dalai Felinto [Tue, 2 Jan 2018 15:10:28 +0000 (13:10 -0200)]
Outliner/Collections: Don't link a collection after creation

2 years agonstall_deps: llvm downloads new website location
Bastien Montagne [Tue, 2 Jan 2018 14:21:21 +0000 (15:21 +0100)]
nstall_deps: llvm downloads new website location

Patch by Lucas Walter (@lucasw), thanks.

Reviewers: mont29

Reviewed By: mont29

Subscribers: mont29

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

2 years agofix T53230: avoid Nullpointer problems in Collada Exporter
Gaia Clary [Mon, 1 Jan 2018 14:02:26 +0000 (15:02 +0100)]
fix T53230: avoid Nullpointer problems in Collada Exporter

2 years agoBuild: fix make deps TBB on Linux, older versions don't support GCC 7.
Brecht Van Lommel [Tue, 8 Aug 2017 00:46:19 +0000 (02:46 +0200)]
Build: fix make deps TBB on Linux, older versions don't support GCC 7.

2 years agoBuild: fix make deps OpenSubdiv build on Linux.
Brecht Van Lommel [Fri, 29 Dec 2017 17:11:46 +0000 (18:11 +0100)]
Build: fix make deps OpenSubdiv build on Linux.

2 years agoOutliner/Collection: Interface for Master Collection Tree
Dalai Felinto [Fri, 29 Dec 2017 15:32:23 +0000 (13:32 -0200)]
Outliner/Collection: Interface for Master Collection Tree

This is part of T53495.

This adds an Edit menu and remove the buttons.

2 years agoOutliner/Collection: Operator to delete selected collections
Dalai Felinto [Fri, 29 Dec 2017 14:13:47 +0000 (12:13 -0200)]
Outliner/Collection: Operator to delete selected collections

This is part of T53495.

This operator is actually using existing code. The only new thing about it is
that it has a shortcut.

It will be exposed in the UI soon together with the nested collection operator.

2 years agoOutliner/Collection: Operator to create (nested) collections
Dalai Felinto [Fri, 29 Dec 2017 13:36:54 +0000 (11:36 -0200)]
Outliner/Collection: Operator to create (nested) collections

This is part of T53495.

This operator is intended for the outliner when viewing Collections (at the moment, Master Collection Tree).
It has a shortcut "C", and will be added to a menu shortly.

2 years agoFix T53513: Particle size showing in multiple places
Dalai Felinto [Fri, 29 Dec 2017 15:03:26 +0000 (13:03 -0200)]
Fix T53513: Particle size showing in multiple places

Technically this was introduced in 01b547f9931970050e when
exposing size and randomness for particles.

This "fixes" makes sure particle size and size randomness is always in the
Render panel when it affects the particle system (i.e., always unless using
advanced hair or hair that is not rendering groups/objects).

2 years agoFix T53647: Outliner crashes when active object is deleted
Dalai Felinto [Fri, 29 Dec 2017 11:55:13 +0000 (09:55 -0200)]
Fix T53647: Outliner crashes when active object is deleted

Based on patch by Philipp Oeser (lichtwerk).

2 years agoFix T53639: text sequence strips no stamped into render.
Philipp Oeser [Thu, 28 Dec 2017 23:10:27 +0000 (00:10 +0100)]
Fix T53639: text sequence strips no stamped into render.

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

2 years agoFix mistake in previous fix for T53600, shows we really need a smarter solution.
Brecht Van Lommel [Thu, 28 Dec 2017 23:07:49 +0000 (00:07 +0100)]
Fix mistake in previous fix for T53600, shows we really need a smarter solution.

2 years agoFix T53630: Effect strips not displaying Input data.
Bastien Montagne [Thu, 28 Dec 2017 16:57:18 +0000 (17:57 +0100)]
Fix T53630: Effect strips not displaying Input data.
Fix T52977: Parent bone name disappeared in the UI in pose mode.

Regression caused by own rBc57636f060018. So instead of changing widget
type, just flag it as disabled.

Note that core of the issue is elsewhere though - there is absolutely no
reasons to have a search widget for pointers we cannot change nor
search! But fixing this is not really top priority, one of the many
glitches of our UI code, so think we can live with current code.

To be backported to 2.79a.

2 years agoRNA cleanup: Argument names + tooltip for scene_collection.collections.remove()
Dalai Felinto [Thu, 28 Dec 2017 14:53:52 +0000 (12:53 -0200)]
RNA cleanup: Argument names + tooltip for scene_collection.collections.remove()

2 years agoContext: Fix scene_collection
Dalai Felinto [Thu, 28 Dec 2017 14:24:10 +0000 (12:24 -0200)]
Context: Fix scene_collection

We now allow for scene collection that is not currently linked to view layer.

2 years agoRNA: scene_collection.collections.new() name optional
Dalai Felinto [Thu, 28 Dec 2017 14:23:37 +0000 (12:23 -0200)]
RNA: scene_collection.collections.new() name optional

We already have a fallback naming system when no naming is given, we should use that.

2 years agoCleanup after collection rename commit
Dalai Felinto [Thu, 28 Dec 2017 11:23:29 +0000 (09:23 -0200)]
Cleanup after collection rename commit

Related to c9cb5dc3dab0.

2 years agoCollections: Allow collections from different "parents" to have the same name
Dalai Felinto [Wed, 27 Dec 2017 21:19:45 +0000 (19:19 -0200)]
Collections: Allow collections from different "parents" to have the same name

This allows users to have "Support", "Rig", "Characters" collections nested to
different collections without having to resort to "House.Rig", "House.Characters"
or "Rig.001", "Characters.003" :/

This is part of T53495.

2 years agoFix missing redraws when changing active view-layer or its name
Julian Eisel [Wed, 27 Dec 2017 16:08:00 +0000 (17:08 +0100)]
Fix missing redraws when changing active view-layer or its name

Also removed unnecessary `struct` keywords.

2 years ago Fix T53638: View layer renaming crashes 2/2
Dalai Felinto [Wed, 27 Dec 2017 15:32:30 +0000 (13:32 -0200)]
 Fix T53638: View layer renaming crashes 2/2

This fixes renaming the view layer via Python.

This bug was introduced originally in 3a95bdfc65d. Although I suspect it was
around for longer, since this commit didn't touch this part of the code.

But basically we need the id of the RNA property to be the one that owns
the data (view layer).

2 years agoFix T53638: View layer renaming crashes 1/2
Dalai Felinto [Wed, 27 Dec 2017 14:55:00 +0000 (12:55 -0200)]
Fix T53638: View layer renaming crashes 1/2

This fixes renaming via the interface.

This bug was introduced originally in 9515737b554. We need the id of the RNA
property to be the one that owns the data (view layer).

So it can't be the window's id, but the scene one instead.

2 years agoDepsgraph: Fix copy-on-write assert when freeing Freestyle config
Dalai Felinto [Tue, 26 Dec 2017 15:31:45 +0000 (13:31 -0200)]
Depsgraph: Fix copy-on-write assert when freeing Freestyle config

We were bumping user count when duplicating viewlayer and its freestyleconfig
depending on the flag, however when freeing we were always decreasing user
count.

This fixes this and get rid of the assert when running:
`--factory-startup --enable-copy-on-write`

And closing Blender.

2 years agoFix T53600: Cycles shader mixing issue with principled BSDF and zero weights.
Brecht Van Lommel [Mon, 25 Dec 2017 22:43:55 +0000 (23:43 +0100)]
Fix T53600: Cycles shader mixing issue with principled BSDF and zero weights.

SVM nodes need to read all data to get the right offset for the following node.
This is quite weak, a more generic solution would be good in the future.

2 years agoFix T53607: Cycles normal map baking problem when there is no bump.
Brecht Van Lommel [Mon, 25 Dec 2017 22:04:51 +0000 (23:04 +0100)]
Fix T53607: Cycles normal map baking problem when there is no bump.

2 years agoCleanup - Various style/typo fixes
Joshua Leung [Sat, 23 Dec 2017 10:54:05 +0000 (23:54 +1300)]
Cleanup - Various style/typo fixes

2 years agoCollections: deletea collection move objects to master collection if users=0
Dalai Felinto [Fri, 22 Dec 2017 21:15:06 +0000 (19:15 -0200)]
Collections: deletea collection move objects to master collection if users=0

The mental model is that a scene collection is a small wrap on top of the master
collection, so all objects are in the master collection at all times.

When we remove a collection there is no reason to remove an object. So if the
object was not linked to any other collection, we add link it to the master one.

2 years agoFix scalability issue in threaded code of Mesh normals computation.
Bastien Montagne [Fri, 22 Dec 2017 21:12:23 +0000 (22:12 +0100)]
Fix scalability issue in threaded code of Mesh normals computation.

We tried to do as much as possible in a single threaded callback, which
lead to using some nasty tricks like fake atomic-based spinlocks to
perform some operations (like float addition, which has no atomic
intrinsics).

While OK with 'standard' low number of working threads (8-16), because
collision were rather rare and implied memory barrier not *that* much
overhead, this performed poorly with more powerful systems reaching the
100 of threads and beyond (like workstations or render farm hardware).

There, both memory barrier overhead and more frequent collisions would
have significant impact on performances.

This was addressed by splitting further the process, we now have three
loops, one over polys, loops and vertices, and we added an intermediate
storage for weighted loop normals. This allows to avoid completely any
atomic operation in body of threaded loops, which should fix scalability
issues. This costs us slightly higher temp memory usage (something like
50Mb per million of polygons on average), but looks like acceptable
tradeoff.

Further more, tests showed that we could gain an additional ~7% of speed
in computing normals of heavy meshes, by also parallelizing the last two
loops (might be 1 or 2% on overall mesh update at best...).

Note that further tweaking in this code should be possible once Sergey
adds the 'minimum batch size' option to threaded foreach API, since very
light loops like the one on loops (mere v3 addition) require much bigger
batches than heavier code (like the one on polys) to keep optimal
performances.

2 years agoCorrection to previous commit: Pass MakePrimitiveData to make_prim_finish
Julian Eisel [Fri, 22 Dec 2017 17:53:26 +0000 (18:53 +0100)]
Correction to previous commit: Pass MakePrimitiveData to make_prim_finish

2 years agoCleanup: Encapsulate primitive creation data into struct, remove unused argument
Julian Eisel [Fri, 22 Dec 2017 17:20:30 +0000 (18:20 +0100)]
Cleanup: Encapsulate primitive creation data into struct, remove unused argument

Should make it easier to add new and modify existing parameters.

2 years agoFix manipulators not updating when changing workspace view-layer
Julian Eisel [Fri, 22 Dec 2017 16:04:00 +0000 (17:04 +0100)]
Fix manipulators not updating when changing workspace view-layer

There are more issues when changing view-layer (esp. with edit-mode).

2 years agoTask scheduler: Clarify why do we need an atomic add of 0
Sergey Sharybin [Fri, 22 Dec 2017 15:37:25 +0000 (16:37 +0100)]
Task scheduler: Clarify why do we need an atomic add of 0

2 years agoCollection: Name collection based on parent's name
Dalai Felinto [Fri, 22 Dec 2017 13:11:04 +0000 (11:11 -0200)]
Collection: Name collection based on parent's name

So they are:

House
 -> House 1
 -> House 2
 -> ...

The exception is when the parent collection is the master collection. In this case we get:

Master Collection
 -> Collection 1
 -> Collection 2
 -> ...

This is part of "T53495: View layer and collection editing - Design Task"

2 years agoSubsurf: Avoid possible use of partially initialized edge hash
Sergey Sharybin [Fri, 22 Dec 2017 11:50:06 +0000 (12:50 +0100)]
Subsurf: Avoid possible use of partially initialized edge hash

2 years agoSubsurf: Avoid global lock for loops and orig index layers
Sergey Sharybin [Fri, 22 Dec 2017 11:45:06 +0000 (12:45 +0100)]
Subsurf: Avoid global lock for loops and orig index layers

This is a bit annoying to have per-DM locking, but it's way better (as in, up to
4 times better) for playback speed when having lots of subsurf objects,

2 years agoTask scheduler: Start with suspended pool to avoid threading overhead on push
Sergey Sharybin [Fri, 22 Dec 2017 11:25:11 +0000 (12:25 +0100)]
Task scheduler: Start with suspended pool to avoid threading overhead on push

The idea is to avoid any threading overhead when we start pushing tasks in a
loop. Similarly to how we do it from the new dependency graph. Gives couple of
percent of speedup here, but also improves scalability.

2 years agoT53610: Crash opening file with linked particles
Dalai Felinto [Fri, 22 Dec 2017 01:24:29 +0000 (23:24 -0200)]
T53610: Crash opening file with linked particles

I could done a subversion bump, but I found a safe way to avoid it.
It leads a bit of an ugly code, but once we bump the subversion
next time we can clean it up easily.

2 years agoFix typo in previous commit
Sergey Sharybin [Thu, 21 Dec 2017 16:19:07 +0000 (17:19 +0100)]
Fix typo in previous commit

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 21 Dec 2017 16:17:27 +0000 (17:17 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Sort and clam number of statistics entries
Sergey Sharybin [Thu, 21 Dec 2017 16:16:18 +0000 (17:16 +0100)]
Depsgraph: Sort and clam number of statistics entries

Makes log easier to read.

2 years agoImplement duplicator viewport/render visibility options
Dalai Felinto [Thu, 21 Dec 2017 15:29:14 +0000 (13:29 -0200)]
Implement duplicator viewport/render visibility options

This allows a duplicator (as known as dupli parent) to be in a visible
collection so its duplicated objects are visible, however while being
invisible for the final render.

An object that is a particle emitter is also considered a duplicator.

Many thanks for the reviewers for the extense feedback.

Reviewers: sergey, campbellbarton

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

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 21 Dec 2017 15:36:02 +0000 (16:36 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Bring timing statistics to the new dependency graph
Sergey Sharybin [Thu, 21 Dec 2017 15:14:15 +0000 (16:14 +0100)]
Depsgraph: Bring timing statistics to the new dependency graph

This statistics is only collected when debug_value is different from 0.

Stored in depsgraph node itself, so we can always have access to average data
and other stats which requires persistent storage. This way we also don't waste
time trying to find stats from a separately stored hash map.

2 years agoDepsgraph: Make it more clear that we dump relations into graphviz
Sergey Sharybin [Thu, 21 Dec 2017 11:56:44 +0000 (12:56 +0100)]
Depsgraph: Make it more clear that we dump relations into graphviz

We might implement other things to dump into graphviz, so better to
start having explicit names.

2 years agoDepsgraph: Simplify some functions in evaluaiton
Sergey Sharybin [Thu, 21 Dec 2017 11:32:32 +0000 (12:32 +0100)]
Depsgraph: Simplify some functions in evaluaiton

2 years agoDepsgraph: Simplify evaluation function
Sergey Sharybin [Thu, 21 Dec 2017 11:24:51 +0000 (12:24 +0100)]
Depsgraph: Simplify evaluation function

2 years agoFix T53567: Negative pixel values causing artifacts with denoising
Lukas Stockner [Thu, 21 Dec 2017 13:24:23 +0000 (14:24 +0100)]
Fix T53567: Negative pixel values causing artifacts with denoising

Now negative color values are clamped to zero before the actual denoising.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 21 Dec 2017 11:17:48 +0000 (12:17 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Fix mistake in previous commit
Sergey Sharybin [Thu, 21 Dec 2017 11:16:12 +0000 (12:16 +0100)]
Depsgraph: Fix mistake in previous commit

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 21 Dec 2017 11:00:06 +0000 (12:00 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Remove confusing declaration of node method
Sergey Sharybin [Thu, 21 Dec 2017 10:58:48 +0000 (11:58 +0100)]
Depsgraph: Remove confusing declaration of node method

it is only to be implemented for operation node.

2 years agoDepsgraph: Remove one of temporary tags in the node
Sergey Sharybin [Thu, 21 Dec 2017 10:47:34 +0000 (11:47 +0100)]
Depsgraph: Remove one of temporary tags in the node

No real reason to have that, better to free up space for something much more
awesome!

2 years agoDepsgraph: Cleanup, move implementation away from header
Sergey Sharybin [Thu, 21 Dec 2017 10:33:50 +0000 (11:33 +0100)]
Depsgraph: Cleanup, move implementation away from header

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 21 Dec 2017 10:17:34 +0000 (11:17 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Remove evaluation priority completely
Sergey Sharybin [Thu, 21 Dec 2017 10:15:21 +0000 (11:15 +0100)]
Depsgraph: Remove evaluation priority completely

2 years agoDepsgraph: Remove eval priority from debugger
Sergey Sharybin [Thu, 21 Dec 2017 10:13:22 +0000 (11:13 +0100)]
Depsgraph: Remove eval priority from debugger

This needs to be redone anyway, to correspond to possibly new priorities
calculated for evaluaiton.

2 years agoDepsgraph: Remove unused component context functions
Sergey Sharybin [Thu, 21 Dec 2017 09:37:00 +0000 (10:37 +0100)]
Depsgraph: Remove unused component context functions

2 years agoFix for T53599: OpenGL render with transparent background
Dalai Felinto [Wed, 20 Dec 2017 17:28:12 +0000 (15:28 -0200)]
Fix for T53599: OpenGL render with transparent background

I had to make Eevee draw its scene in the scene pass (before it was doing it
in the background pass). This is not ideal since reference images require
a separation between scene and background.

But it's the best way to solve it now. Clay is working fine.

2 years agoDepsgraph: Remove node class stored in both type info and node
Sergey Sharybin [Wed, 20 Dec 2017 16:54:52 +0000 (17:54 +0100)]
Depsgraph: Remove node class stored in both type info and node

This is something deliver form node type, there is no reason to try cache it
anywhere, especially since it's not used in any performance critical code.

Lighter weight dependency graph is what we want.

2 years agoCycles: Cleanup, indentation
Sergey Sharybin [Wed, 20 Dec 2017 16:42:50 +0000 (17:42 +0100)]
Cycles: Cleanup, indentation

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 20 Dec 2017 15:46:28 +0000 (16:46 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Remove unused incldues
Sergey Sharybin [Wed, 20 Dec 2017 15:45:10 +0000 (16:45 +0100)]
Depsgraph: Remove unused incldues

2 years agoFix compilaiton error in debug mode
Sergey Sharybin [Wed, 20 Dec 2017 15:41:51 +0000 (16:41 +0100)]
Fix compilaiton error in debug mode

The structure was just calloc-ed, no need to check for anything. It's all zeroes!

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 20 Dec 2017 15:40:49 +0000 (16:40 +0100)]
Merge branch 'master' into blender2.8

2 years agoDepsgraph: Move ID node to own file
Sergey Sharybin [Wed, 20 Dec 2017 15:35:48 +0000 (16:35 +0100)]
Depsgraph: Move ID node to own file

2 years agoDepsgraph: Move time source node to own file
Sergey Sharybin [Wed, 20 Dec 2017 15:27:08 +0000 (16:27 +0100)]
Depsgraph: Move time source node to own file

2 years agoDepsgraph: Print some statistics about transitive reduction
Sergey Sharybin [Wed, 20 Dec 2017 15:19:40 +0000 (16:19 +0100)]
Depsgraph: Print some statistics about transitive reduction

2 years agoDepsgraph: Make transitive reduction to work
Sergey Sharybin [Wed, 20 Dec 2017 15:16:28 +0000 (16:16 +0100)]
Depsgraph: Make transitive reduction to work

2 years agoDepsgraph: Add utility function to unlink relation from graph
Sergey Sharybin [Wed, 20 Dec 2017 15:15:55 +0000 (16:15 +0100)]
Depsgraph: Add utility function to unlink relation from graph

2 years agoDepsgraph: Remove unused priority calculator
Sergey Sharybin [Wed, 20 Dec 2017 14:51:59 +0000 (15:51 +0100)]
Depsgraph: Remove unused priority calculator

While it sounds useful, in practice it was rather causing
extra overhead and was slowing things down.

2 years agoDepsgraph: Remove remaining parts of old removed debugger
Sergey Sharybin [Wed, 20 Dec 2017 14:50:22 +0000 (15:50 +0100)]
Depsgraph: Remove remaining parts of old removed debugger

2 years agoFix T53572: Alembic imports UV maps incorrectly
Martin Felke [Wed, 20 Dec 2017 09:30:39 +0000 (10:30 +0100)]
Fix T53572: Alembic imports UV maps incorrectly

Since in Alembic the loop order seems to be reversed when exporting and
importing, and this was the only place where it was not, I was thinking
to match this to the convention of reversing the loop order as well.

Reviewers: sybren, kevindietrich

Tags: #alembic

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