blender.git
2 years agoAdded orientation calculation. Normals are now flipped correctly.
Sebastian Witt [Wed, 19 Jul 2017 10:24:56 +0000 (12:24 +0200)]
Added orientation calculation. Normals are now flipped correctly.

2 years agoBugfix T-Intersection orientation out of order.
Sebastian Witt [Wed, 19 Jul 2017 08:58:45 +0000 (10:58 +0200)]
Bugfix T-Intersection orientation out of order.

2 years agoMinor Bugfixes, holes in t-intersections and edge offset in smaller intersections...
Sebastian Witt [Tue, 18 Jul 2017 14:36:37 +0000 (16:36 +0200)]
Minor Bugfixes, holes in t-intersections and edge offset in smaller intersections fixed.

2 years agoBugfix, parts now no longer disappear.
Sebastian Witt [Tue, 18 Jul 2017 11:11:20 +0000 (13:11 +0200)]
Bugfix, parts now no longer disappear.
(Division by 0)

2 years agoMinor bugfix, jagged lines on the right side of tubes.
Sebastian Witt [Tue, 18 Jul 2017 09:34:38 +0000 (11:34 +0200)]
Minor bugfix, jagged lines on the right side of tubes.
Interpolation needs to be within 0...1

2 years agoParts now get connected. T-Intersections are bugged sometimes.
Sebastian Witt [Wed, 12 Jul 2017 14:55:55 +0000 (16:55 +0200)]
Parts now get connected. T-Intersections are bugged sometimes.

2 years agoFinished T-intersection topology. Next up connecting the parts.
Sebastian Witt [Tue, 11 Jul 2017 18:30:55 +0000 (20:30 +0200)]
Finished T-intersection topology. Next up connecting the parts.

2 years agoFinished cap geometry. Fixed uneven tube offset. Tubes and Caps now have a unified...
Sebastian Witt [Tue, 11 Jul 2017 11:15:54 +0000 (13:15 +0200)]
Finished cap geometry. Fixed uneven tube offset. Tubes and Caps now have a unified edge-border structure.

2 years agoReworked most of the vertex/edge/poly/loop generation. Added a unified interpolation...
witt [Mon, 10 Jul 2017 16:56:27 +0000 (18:56 +0200)]
Reworked most of the vertex/edge/poly/loop generation. Added a unified interpolation method. Vertices are now subsequent so it will be easier to bridge the different parts. Removed dependency on the order of generation.

2 years agoLast commit before mayor rework. Mostly for future reference.
witt [Thu, 6 Jul 2017 15:01:34 +0000 (17:01 +0200)]
Last commit before mayor rework. Mostly for future reference.

2 years agoMinor code cleanup and structuring. Bug fixes!
witt [Mon, 3 Jul 2017 14:48:27 +0000 (16:48 +0200)]
Minor code cleanup and structuring. Bug fixes!

2 years agoProgress on generated shape. Lots of smaller bugfixes parts are partially bridged.
witt [Fri, 30 Jun 2017 17:40:07 +0000 (19:40 +0200)]
Progress on generated shape. Lots of smaller bugfixes parts are partially bridged.

2 years agoAdded t-intersections and caps. Next step: bridging the gaps.
witt [Fri, 23 Jun 2017 17:50:08 +0000 (19:50 +0200)]
Added t-intersections and caps. Next step: bridging the gaps.

2 years agoAdded 2D shape topology detection, first silhouette geometry gets created. Use with...
witt [Fri, 16 Jun 2017 20:32:03 +0000 (22:32 +0200)]
Added 2D shape topology detection, first silhouette geometry gets created. Use with alt+leftclick within sculpting mode.
--Experimental/Broken--

2 years agoMerge branch 'master' into soc-2017-sculpting_improvements
witt [Mon, 12 Jun 2017 08:12:49 +0000 (10:12 +0200)]
Merge branch 'master' into soc-2017-sculpting_improvements
Keep the branch updated to make merging it easier later.

2 years agoCleanup: indentation, long lines
Campbell Barton [Mon, 12 Jun 2017 03:35:00 +0000 (13:35 +1000)]
Cleanup: indentation, long lines

2 years agoFix T51737: Material properties error
Campbell Barton [Mon, 12 Jun 2017 02:55:47 +0000 (12:55 +1000)]
Fix T51737: Material properties error

D2706 by @knox

2 years agoCorrect gtest EXPECT use
Campbell Barton [Mon, 12 Jun 2017 00:25:18 +0000 (10:25 +1000)]
Correct gtest EXPECT use

2 years agoCycles: adjust supported driver version for AMD GPUs
Hristo Gueorguiev [Sun, 11 Jun 2017 21:04:27 +0000 (23:04 +0200)]
Cycles: adjust supported driver version for AMD GPUs

On Windows 17.Q1 and 17.Q2 return driver version 2236.10.

2 years agoUse two decimal places for UI scale User Preference option
Julian Eisel [Sun, 11 Jun 2017 20:58:14 +0000 (22:58 +0200)]
Use two decimal places for UI scale User Preference option

2 years agoGTest: initial kdopbvh test
Campbell Barton [Sun, 11 Jun 2017 09:07:18 +0000 (19:07 +1000)]
GTest: initial kdopbvh test

Currently only find-nearest, ray-casting needs to be added.

2 years agoBLI_kdopbvh: add ifdef's for debugging info
Campbell Barton [Sun, 11 Jun 2017 08:42:11 +0000 (18:42 +1000)]
BLI_kdopbvh: add ifdef's for debugging info

Allow to quickly enable print & tree verify.

2 years agoCycles Denoising: Add more failsafes for invalid pixels
Lukas Stockner [Sat, 10 Jun 2017 23:44:06 +0000 (01:44 +0200)]
Cycles Denoising: Add more failsafes for invalid pixels

Now, when there is no usable neighboring pixel for denoising, the noisy value
is preserved instead of producing a NaN.
Also, negative results are clamped to zero.

Note that there are just workarounds that don't fix the underlying problems,
but these issues are very rare and I'm not sure if it's even possible to fix
the underlying problems without introducing a significant slowdown or quality
decrease in other situations.
Because of that and since 2.79 is happening very soon, I just went for these
workarounds for now.

2 years agoUI: Replace placeholder icons in object-add menu
Julian Eisel [Sat, 10 Jun 2017 14:41:58 +0000 (16:41 +0200)]
UI: Replace placeholder icons in object-add menu

Replaces the placeholder 'emtpy' icons of "Force Field" and "Group
Instance" entries in object-add menu with proper new ones.

Icons by @zlsa, thanks a lot!

Maniphest task T51291.

2 years agoCycles: Selectively include denoising in kernel
Sergey Sharybin [Fri, 9 Jun 2017 07:11:54 +0000 (03:11 -0400)]
Cycles: Selectively include denoising in kernel

2 years agoCycles: Pass all buffers to each kernel call for OpenCL
Mai Lavelle [Thu, 11 May 2017 23:23:49 +0000 (19:23 -0400)]
Cycles: Pass all buffers to each kernel call for OpenCL

Technically not passing all buffers used by a kernel is undefined
behavior. We haven't had any issues with this so far on AMD or
Nvidia, but it's known to be a problem with Intel and we received
a report from AMD that this is a problem on newer hardware, so we
need to make this change at some point.

Unfortunately there a cost to being correct, about 5% for the
benchmark scenes. For low sample counts it's even worse, I've
seen up to 50% slowdown. For the latter case I think adjusting
tile updating logic can help, but not sure what that would look
like yet (it would be just a few lines change however).

2 years agoCycles: Faster split branched path tracing by sharing samples with inactive threads
Mai Lavelle [Tue, 30 May 2017 01:35:27 +0000 (21:35 -0400)]
Cycles: Faster split branched path tracing by sharing samples with inactive threads

Unlike regular path tracing, branched path tracing is usually used with lower
sample counts, at least for primary rays. This means that are less samples for
the GPU to work on in parallel and rendering is slower. As there is less work
overall there is also more inactive threads during rendering with BPT. This
patch makes use of those inactive rays to render branched samples in parallel
with other samples.

Each thread that is preparing for a branched sample will attempt to find an
inactive thread and if one is found the state for the sample is copied to that
thread. Potentially, if there are enough inactive threads, 100s of branched
samples could be generated from the same originating thread and ran in
parallel giving large speed ups.

Gives 70% faster render for pavillion midday scene. 20-60% faster on BMW
with car paint replaced with SSS/volumes.

2 years agoCycles: Modify path_radiance_accum_sample to use atomics for split kernel
Mai Lavelle [Tue, 30 May 2017 01:34:05 +0000 (21:34 -0400)]
Cycles: Modify path_radiance_accum_sample to use atomics for split kernel

Samples ran in parallel need a safe way to accumulate their results
with the results of other threads.

2 years agoCycles: Add function to dequeue a ray
Mai Lavelle [Tue, 30 May 2017 01:33:27 +0000 (21:33 -0400)]
Cycles: Add function to dequeue a ray

2 years agoCycles: Add atomic decrement functions to util_atomic.h
Mai Lavelle [Tue, 30 May 2017 01:28:21 +0000 (21:28 -0400)]
Cycles: Add atomic decrement functions to util_atomic.h

2 years agoCycles: Add kernel to enqueue inactive rays
Mai Lavelle [Tue, 30 May 2017 00:40:26 +0000 (20:40 -0400)]
Cycles: Add kernel to enqueue inactive rays

The queue will be used to make reuse of inactive threads to keep
the GPU more busy.

2 years agoCycles: Blacklist unsupported OpenCL devices
Hristo Gueorguiev [Thu, 8 Jun 2017 09:08:52 +0000 (05:08 -0400)]
Cycles: Blacklist unsupported OpenCL devices

Due to various driver issues with AMD GCN 1 cards we can no longer support
these GPUs. This patch makes them unavailable to select for Cycles rendering.

GCN cards 2 and higher are still supported. Please use the most recent
drivers available to ensure proper functionality.

See here for a list to check which GPUs are supported:
https://en.wikipedia.org/wiki/List_of_AMD_graphics_processing_units

2 years agoCycles: Fix denoising passes being written when they're not actually generated
Lukas Stockner [Fri, 9 Jun 2017 21:02:56 +0000 (23:02 +0200)]
Cycles: Fix denoising passes being written when they're not actually generated

2 years agoCleanup Cycles Denoising platform-specific defines
Lukas Stockner [Fri, 9 Jun 2017 20:31:26 +0000 (22:31 +0200)]
Cleanup Cycles Denoising platform-specific defines

2 years agoCycles Denoising: Speedup reconstruction by skipping near-zero weights
Lukas Stockner [Fri, 9 Jun 2017 20:27:49 +0000 (22:27 +0200)]
Cycles Denoising: Speedup reconstruction by skipping near-zero weights

2 years agoUI: Fix some small ui inconsistencies
Aaron Carlisle [Fri, 9 Jun 2017 19:23:44 +0000 (15:23 -0400)]
UI: Fix some small ui inconsistencies

- Use "..." to indicate non immediate action.
- First letter of words in labels should be capitalized.

2 years agoFixed some issues when inserting new meshdata into a pbvh.
witt [Fri, 9 Jun 2017 15:27:52 +0000 (17:27 +0200)]
Fixed some issues when inserting new meshdata into a pbvh.

Buffers now get reset and primitives are written.
Works for the simplest cornercase: Alt+Leftclick draw on a mesh with one node outside of that node.

2 years agoCleanup: get rid of some now unused animdata ID management custom functions.
Bastien Montagne [Fri, 9 Jun 2017 14:29:20 +0000 (16:29 +0200)]
Cleanup: get rid of some now unused animdata ID management custom functions.

That's the kind of commit that are nice to do - getting rid of
half-working custom pieces of code, now that we have generic tools
to do same thing. ;)

2 years agoFix crash when making local object+obdata with linked armature.
Bastien Montagne [Fri, 9 Jun 2017 13:58:32 +0000 (15:58 +0200)]
Fix crash when making local object+obdata with linked armature.

Reported by Andy Goralczyk (@eyecandy) over IRC, thanks!

Simply nuke all that poor broken custom one-by-one handling in
object_relations.c code, and use highly complex but powerful and
well-tested BKE_library_make_local() in all cases of MakeLocal!

ID management, especially related to linking, is very hairy matters,
better to have as few as possible core functions managing all the dirty
details. ;)

2 years agoSilhouette Operator basis setup.
witt [Fri, 9 Jun 2017 10:05:36 +0000 (12:05 +0200)]
Silhouette Operator basis setup.
First tests to generate Geometry, failed to integrate into the existing pbvh structure.
Experimental broken code.

2 years agoMath Lib: Add mat3_from_axis_conversion_single
Campbell Barton [Fri, 9 Jun 2017 09:31:27 +0000 (19:31 +1000)]
Math Lib: Add mat3_from_axis_conversion_single

Single axis version of mat3_from_axis_conversion,
when the second axis isn't important (orienting an arrow for eg).

2 years agoFix T51756: Fix crash when transforming vertices in edit mode
Sergey Sharybin [Fri, 9 Jun 2017 08:46:00 +0000 (10:46 +0200)]
Fix T51756: Fix crash when transforming vertices in edit mode

The issue was caused by under-allocation of UV islands calculation.

2 years agoFix T51648: Inconsistent edge collapse point depending on orientation
Luca Rood [Fri, 9 Jun 2017 07:56:19 +0000 (09:56 +0200)]
Fix T51648: Inconsistent edge collapse point depending on orientation

Edge collapse was using bounding box center as the point to collapse to.
When collapsing multiple adjacent edges together, this caused
inconsistencies in placement of the collapsed point, depending on the
orientation of the edges in relation to the space axis.

This makes edge collapse use the mean point instead.

2 years agoinstall_depsh: update OpenCollada to 1.6.51, and OIIO to 1.7.15
Bastien Montagne [Fri, 9 Jun 2017 07:44:40 +0000 (09:44 +0200)]
install_depsh: update OpenCollada to 1.6.51, and OIIO to 1.7.15

2 years agoFix for fix for bplayer (c) :/
Bastien Montagne [Fri, 9 Jun 2017 07:23:54 +0000 (09:23 +0200)]
Fix for fix for bplayer (c) :/

2 years agoFix bplayer building (c)
Bastien Montagne [Fri, 9 Jun 2017 07:13:54 +0000 (09:13 +0200)]
Fix bplayer building (c)

2 years agoCycles Denoising: Merge outlier heuristic and confidence interval test
Lukas Stockner [Fri, 9 Jun 2017 00:30:06 +0000 (02:30 +0200)]
Cycles Denoising: Merge outlier heuristic and confidence interval test

The previous outlier heuristic only checked whether the pixel is more than
twice as bright compared to the 75% quantile of the 5x5 neighborhood.
While this detected fireflies robustly, it also incorrectly marked a lot of
legitimate small highlights as outliers and filtered them away.

This commit adds an additional condition for marking a pixel as a firefly:
In addition to being above the reference brightness, the lower end of the
3-sigma confidence interval has to be below it.
Since the lower end approximates how low the true value of the pixel might be,
this test separates pixels that are supposed to be very bright from pixels that
are very bright due to random fireflies.

Also, since there is now a reliable outlier filter as a preprocessing step,
the additional confidence interval test in the reconstruction kernel is no
longer needed.

2 years agoRNA: remove static strings from registration
Campbell Barton [Thu, 8 Jun 2017 21:13:35 +0000 (07:13 +1000)]
RNA: remove static strings from registration

* Static strings aren't needed anymore, use stack memory.
* Fix obscure leak on failed macro registration.
* Use prefix for wrappers exported from bpy module.

2 years agoCleanup: cmake indentation, missing include
Campbell Barton [Thu, 8 Jun 2017 20:45:21 +0000 (06:45 +1000)]
Cleanup: cmake indentation, missing include

2 years agoFix T51733: 3d print toolbox checks report false positives.
Bastien Montagne [Thu, 8 Jun 2017 12:02:49 +0000 (14:02 +0200)]
Fix T51733: 3d print toolbox checks report false positives.

Colinear vertices in a same face would not be handled correctly.

2 years agoCycles: Don't leave multiple spaces in the device name
Sergey Sharybin [Thu, 8 Jun 2017 10:15:24 +0000 (12:15 +0200)]
Cycles: Don't leave multiple spaces in the device name

2 years agoCycles: Display optional board name in system info
Sergey Sharybin [Thu, 8 Jun 2017 10:10:15 +0000 (12:10 +0200)]
Cycles: Display optional board name in system info

2 years agoCycles: Cleanup, indentation
Sergey Sharybin [Thu, 8 Jun 2017 10:03:08 +0000 (12:03 +0200)]
Cycles: Cleanup, indentation

2 years agoSimplify Array modifier 'relative offset' handling.
Bastien Montagne [Thu, 8 Jun 2017 07:17:08 +0000 (09:17 +0200)]
Simplify Array modifier 'relative offset' handling.

Was looping three times over the source mesh's vertices to get min/max
along all three axes... Nothing critical, but still!

2 years agoFix: GP Clone brush was not correcting color references for pasted strokes either
Joshua Leung [Wed, 7 Jun 2017 15:07:57 +0000 (03:07 +1200)]
Fix: GP Clone brush was not correcting color references for pasted strokes either

2 years agoFix: Pasting GP strokes files between files (or when the original colors were deleted...
Joshua Leung [Wed, 7 Jun 2017 14:42:04 +0000 (02:42 +1200)]
Fix: Pasting GP strokes files between files (or when the original colors were deleted) would crash

The problem was that the strokes in the copy-paste buffer could be keeping
dangling pointers to colors that were already freed. Therefore, this commit
makes it so that when copying the strokes, we now make copies of the colors
and put them in a hashtable beside the stroke buffer. This is convenient,
as it saves us having to look up what colours need to be copied over each
time when pasting.

2 years agoGP Copy/Paste Fix: Paste button doesn't update after copying strokes using Ctrl-C
Joshua Leung [Wed, 7 Jun 2017 07:07:57 +0000 (19:07 +1200)]
GP Copy/Paste Fix: Paste button doesn't update after copying strokes using Ctrl-C

2 years agoGPencil Copy/Paste Fix: Copying/Pasting strokes between datablocks would crash
Joshua Leung [Wed, 7 Jun 2017 07:07:21 +0000 (19:07 +1200)]
GPencil Copy/Paste Fix: Copying/Pasting strokes between datablocks would crash

The problem was that newly pasted strokes were still using colours from
the original datablock. As a result, you'd either get an immediate crash,
or if you managed to save the file before it crashed, each stroke would get
reloaded with a dummy colour.

This commit fixes makes it possible to copy/paste strokes between datablocks
again. However, there are still problems when trying to paste across file
boundaries (i.e. copy strokes in one file, paste in another), which the next
commit will address.

2 years agoBevel Op (internal and API) now returns new edges and verts as well as
Howard Trickey [Wed, 7 Jun 2017 12:53:10 +0000 (08:53 -0400)]
Bevel Op (internal and API) now returns new edges and verts as well as
faces.

This was requested by script writers. Especially needed if beveling
wire edges with vertex_only.
Should be backward compatible as just adds two new keys to returned
dict in python ('edges' and 'verts').

2 years agoDepsgraph: Remove modifiers operation code
Sergey Sharybin [Wed, 7 Jun 2017 12:08:11 +0000 (14:08 +0200)]
Depsgraph: Remove modifiers operation code

Was internally a no-op operation, which only caused extra work
to be done during depsgrpah traversal and evaluation, without
making any measurable improvement.

2 years agoDepsgraph: Remove unused operation codes
Sergey Sharybin [Wed, 7 Jun 2017 10:53:38 +0000 (12:53 +0200)]
Depsgraph: Remove unused operation codes

2 years agoDepsgraph: Remove dead/unused operation codes
Sergey Sharybin [Wed, 7 Jun 2017 10:47:19 +0000 (12:47 +0200)]
Depsgraph: Remove dead/unused operation codes

2 years agoReport OpenSubdiv version Blender is compiled against
Sergey Sharybin [Wed, 7 Jun 2017 10:16:48 +0000 (12:16 +0200)]
Report OpenSubdiv version Blender is compiled against

2 years agoCollada: Add search path which is used default by it's SCons build system
Sergey Sharybin [Wed, 7 Jun 2017 09:38:12 +0000 (11:38 +0200)]
Collada: Add search path which is used default by it's SCons build system

2 years agogcc5 has issues with Wconversion
Dalai Felinto [Wed, 7 Jun 2017 09:37:28 +0000 (11:37 +0200)]
gcc5 has issues with Wconversion

This leads to a crash in 2.8, but commiting here.
Patch by Campbell Barton.

2 years agoDepsgraph: Only use extern "C" when really needed
Sergey Sharybin [Tue, 6 Jun 2017 10:14:39 +0000 (12:14 +0200)]
Depsgraph: Only use extern "C" when really needed

2 years agoBLI: Use C++ guards for stack header
Sergey Sharybin [Tue, 6 Jun 2017 10:13:45 +0000 (12:13 +0200)]
BLI: Use C++ guards for stack header

This is handy to have C++ guards for BLI functions so they
can be easily re-used in C++ code. This matches other headers
from this library as well.

2 years agoPyAPI: is_staticmethod used for classmethods's too
Campbell Barton [Mon, 5 Jun 2017 06:05:36 +0000 (16:05 +1000)]
PyAPI: is_staticmethod used for classmethods's too

Add note to investigate this, don't change so close to release.

2 years agoPyAPI: correct exception, expect 'staticmethod'
Campbell Barton [Mon, 5 Jun 2017 05:31:05 +0000 (15:31 +1000)]
PyAPI: correct exception, expect 'staticmethod'

2 years agoFix alembic tests not running with debug build on windows
Ray Molenkamp [Sun, 4 Jun 2017 23:05:59 +0000 (17:05 -0600)]
Fix alembic tests not running with debug build on windows

2 years agoFix T51587: Blender fails to interpret a specific layer in OpenEXR multilayer file
Lukas Stockner [Sat, 3 Jun 2017 22:58:38 +0000 (00:58 +0200)]
Fix T51587: Blender fails to interpret a specific layer in OpenEXR multilayer file

2 years agoPyAPI: Cleanup "Python API Overview" doc
nBurn [Fri, 2 Jun 2017 21:22:44 +0000 (17:22 -0400)]
PyAPI: Cleanup "Python API Overview" doc

Reword to clean up some odd grammar (mostly dangling modifiers) and
improve readability.

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

2 years agoFix T51691: Shear cursor input scales w/ zoom
Campbell Barton [Fri, 2 Jun 2017 10:40:41 +0000 (20:40 +1000)]
Fix T51691: Shear cursor input scales w/ zoom

Use relative value from cursor movement.

2 years agoCleanup: style
Campbell Barton [Fri, 2 Jun 2017 05:38:04 +0000 (15:38 +1000)]
Cleanup: style

2 years agoPyAPI: update to bpy.types.Operator.5.py
nBurn [Fri, 2 Jun 2017 01:59:51 +0000 (21:59 -0400)]
PyAPI: update to bpy.types.Operator.5.py

This is a minor update add more information on how Blender handles modal
operators. The existing docs provide a good overview, but might not be
as helpful to those unfamiliar with modal programming. This patch also
corrects a few small grammar issues.

2 years agoRemove comment (missed last commit)
Campbell Barton [Thu, 1 Jun 2017 15:10:34 +0000 (01:10 +1000)]
Remove comment (missed last commit)

2 years agoFix T51651: translate w/ individual origins fails
Campbell Barton [Thu, 1 Jun 2017 15:04:11 +0000 (01:04 +1000)]
Fix T51651: translate w/ individual origins fails

Regression in fix for T46892

2 years agoDepsgraph: Cleanup, line wraps after shortening API
Sergey Sharybin [Thu, 1 Jun 2017 14:20:48 +0000 (16:20 +0200)]
Depsgraph: Cleanup, line wraps after shortening API

2 years agoDepsgraph: Remove operation types enum
Sergey Sharybin [Thu, 1 Jun 2017 14:15:23 +0000 (16:15 +0200)]
Depsgraph: Remove operation types enum

Was only used to indicate entry/exit operation of component,
which is now done explicitly. No reason to keep something which
is unused and confusing.

2 years agoDepsgraph: use explicit marking of component entry/exit operations
Sergey Sharybin [Thu, 1 Jun 2017 14:04:35 +0000 (16:04 +0200)]
Depsgraph: use explicit marking of component entry/exit operations

This isn't used too often, and haivng such API will let us to skip
specifying operation type for all oeprations.

2 years agoDepsgraph: Cleanup, use DEG_NODE_CLASS prefix for node classes
Sergey Sharybin [Thu, 1 Jun 2017 13:42:53 +0000 (15:42 +0200)]
Depsgraph: Cleanup, use DEG_NODE_CLASS prefix for node classes

2 years agoDepsgraph: Cleanup, use DEG_NODE_TYPE prefix for depsgraph node types
Sergey Sharybin [Thu, 1 Jun 2017 13:40:02 +0000 (15:40 +0200)]
Depsgraph: Cleanup, use DEG_NODE_TYPE prefix for depsgraph node types

2 years agoDepsgraph: Remove unused argument from time source query
Sergey Sharybin [Thu, 1 Jun 2017 13:38:15 +0000 (15:38 +0200)]
Depsgraph: Remove unused argument from time source query

2 years agoDepsgraph: Remove subgraph nodes
Sergey Sharybin [Thu, 1 Jun 2017 13:14:11 +0000 (15:14 +0200)]
Depsgraph: Remove subgraph nodes

Those were never finished nor used. Again, starting from clean
state before we go into more complicated details.

2 years agoDepsgraph: Remove dead code
Sergey Sharybin [Thu, 1 Jun 2017 13:07:47 +0000 (15:07 +0200)]
Depsgraph: Remove dead code

Was never used or worked on in ages, if any of this code is
needed in the future it'll need to be redone anyway.

2 years agoDepsgraph: Remove dead code from add_time_source()
Sergey Sharybin [Thu, 1 Jun 2017 13:06:05 +0000 (15:06 +0200)]
Depsgraph: Remove dead code from add_time_source()

This was never finished or done or used, no reason to keep it.
Better to simplify things before adding complexity of overrides
and copy-on-write.

2 years agoDepsgraph: Cleanup, get rid of relation type
Sergey Sharybin [Thu, 1 Jun 2017 12:49:17 +0000 (14:49 +0200)]
Depsgraph: Cleanup, get rid of relation type

It was never actually used apart from being stored at a construciton time.
This caused some redundancy and ncertanty about which relation type to use
during construciton (often existing types were not close enough to particular
use case).

2 years agoCleanup: use row() sub-layout to expand enum properties horizontaly
raa [Thu, 1 Jun 2017 13:38:32 +0000 (16:38 +0300)]
Cleanup: use row() sub-layout to expand enum properties horizontaly

2 years agoFix T51687: GPUmat evaluation of shader tree would crash uppon unknown/unsupported...
Bastien Montagne [Thu, 1 Jun 2017 10:18:57 +0000 (12:18 +0200)]
Fix T51687: GPUmat evaluation of shader tree would crash uppon unknown/unsupported socket types.

Made this resilient to unknown types, for now. Supporting specific INT
sockets (through implicit conversion to GPU_FLOAT ones) is considered nice TODO.

2 years agoSmall cleanup. Cleared every unconnected changes and fixed some minor ui bugs.
witt [Thu, 1 Jun 2017 09:10:03 +0000 (11:10 +0200)]
Small cleanup. Cleared every unconnected changes and fixed some minor ui bugs.

2 years agoFix bad index use drawing deformed face centers
Campbell Barton [Thu, 1 Jun 2017 05:04:22 +0000 (15:04 +1000)]
Fix bad index use drawing deformed face centers

2 years agoFix bad handling of 'extra' user for groups at their creation.
Bastien Montagne [Wed, 31 May 2017 19:24:41 +0000 (21:24 +0200)]
Fix bad handling of 'extra' user for groups at their creation.

Was just keeping the default '1' user from `BKE_libblock_alloc()`,
instead of using correct way to handle extra virtual user needed when we
want to keep unused datablocks around...

2 years agoFix T51680: 'Delete Group' from Group view of Outliner does not work.
Bastien Montagne [Wed, 31 May 2017 19:14:08 +0000 (21:14 +0200)]
Fix T51680: 'Delete Group' from Group view of Outliner does not work.

Do not call invoke ops from outliner's operations menus. Invoke op would
search again for item under mouse coordinates... when it is invoked!
Means often entry menu you would have clicked would not be over target
item, leading to either nothing or operation being applied to wrong item.

Note: about groups, there is another minor annoyance leading to some
assert - groups have an annoying virtual fake user which breaks
usercount, will see whether this is easily fixable. :|

2 years agoTask scheduler: Optimize subsequent pushing bunch of tasks
Sergey Sharybin [Wed, 31 May 2017 13:24:09 +0000 (15:24 +0200)]
Task scheduler: Optimize subsequent pushing bunch of tasks

The idea is to accumulate all new tasks in a thread local queue
first without doing any thread synchronization (aka, locks and
conditional variables) and move those tasks to a scheduler queue
once they are all ready. This way we avoid per-task-pool lock
and only have one lock per bunch of tasks.

This is particularly handy when scheduling new dependency graph
node children. Brings FPS of cached simulation from the linked
below file from ~30 to ~50.

See documentation for BLI_task_pool_delayed_push_{begin, end}
and for TaskThreadLocalStorage::do_delayed_push.

Fixes T50027: Rigidbody playback and simulation performance regression with new depsgraph

Thanks Bastien for the review!

2 years agoCleanup: Easier to read constant name
Sergey Sharybin [Wed, 31 May 2017 12:52:45 +0000 (14:52 +0200)]
Cleanup: Easier to read constant name

2 years agoFix T51661: Swaping strips does not refresh sequencer
Sergey Sharybin [Wed, 31 May 2017 12:26:04 +0000 (14:26 +0200)]
Fix T51661: Swaping strips does not refresh sequencer

2 years agoCleanup: Use more clear parenthesis
Sergey Sharybin [Wed, 31 May 2017 12:25:40 +0000 (14:25 +0200)]
Cleanup: Use more clear parenthesis

2 years agoLibmv: Re-bundle from upstream to ensure code base is perfectly in sync
Sergey Sharybin [Wed, 31 May 2017 09:43:39 +0000 (11:43 +0200)]
Libmv: Re-bundle from upstream to ensure code base is perfectly in sync

2 years agoImprove backscatter color of subsurface scattering in Principled BSDF
Pascal Schoen [Wed, 31 May 2017 05:29:17 +0000 (07:29 +0200)]
Improve backscatter color of subsurface scattering in Principled BSDF

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

2 years agoFix T49570: Cycles baking can't handle materials with no images
Dalai Felinto [Tue, 30 May 2017 12:41:21 +0000 (14:41 +0200)]
Fix T49570: Cycles baking can't handle materials with no images

If users wanted to bake only a few of the mesh materials, they would
still need to create dummy textures for the other parts.

This commit report (as RPT_INFO) the materials with no texture, but move
on to bake the others materials.