18 months agoMerge branch 'blender2.7'
Sergey Sharybin [Mon, 18 Mar 2019 11:03:22 +0000 (12:03 +0100)]
Merge branch 'blender2.7'

18 months agoCycles: Cleanup strict compiler warnings
Sergey Sharybin [Mon, 18 Mar 2019 11:02:41 +0000 (12:02 +0100)]
Cycles: Cleanup strict compiler warnings

18 months agoCleanup: we now have a way to tag 'from' ID pointers in libquery code.
Bastien Montagne [Mon, 18 Mar 2019 10:47:54 +0000 (11:47 +0100)]
Cleanup: we now have a way to tag 'from' ID pointers in libquery code.

So no need to have custom verbose own detection cases for those guys...

18 months agoFix mistake in previous commit.
Bastien Montagne [Mon, 18 Mar 2019 10:40:03 +0000 (11:40 +0100)]
Fix mistake in previous commit.

18 months agoFix T62670: insert_link() method not working for ShaderNodeCustomGroup.
Miguel Porces [Mon, 18 Mar 2019 10:16:34 +0000 (11:16 +0100)]
Fix T62670: insert_link() method not working for ShaderNodeCustomGroup.

Allow Python to override this method.

Differential Revision:

18 months agoCleanup: Main id looping: add FOREACH_MAIN_LISTBASE macro.
Bastien Montagne [Mon, 18 Mar 2019 10:32:06 +0000 (11:32 +0100)]
Cleanup: Main id looping: add FOREACH_MAIN_LISTBASE macro.

We don't want to use flow control like `break` statement into the basic
`FOREACH_MAIN_ID` macro, as this is a nested loop.

When refined behavior is needed (like breaking whole iteration, or just
skipping to next ID type), FOREACH_MAIN_LISTBASE and
FOREACH_MAIN_LISTBASE_ID macros should be used instead.

Based on D4382 by @campbellbarton
(Other potential solution, using flow control macros: D4384).

18 months agoAdd-ons: disable 3ds add-on in all existing preferences.
Brecht Van Lommel [Mon, 18 Mar 2019 10:00:15 +0000 (11:00 +0100)]
Add-ons: disable 3ds add-on in all existing preferences.

Silences warning when running with --debug. If/when this add-on is ported,
users that need it can enable it again.

18 months agoCleanup: fix compiler warning.
Brecht Van Lommel [Mon, 18 Mar 2019 09:42:40 +0000 (10:42 +0100)]
Cleanup: fix compiler warning.

18 months agoFix noisy console messages about unported add-ons by default.
Bastien Montagne [Mon, 18 Mar 2019 09:36:50 +0000 (10:36 +0100)]
Fix noisy console messages about unported add-ons by default.

* Make those single-line warning, there is really no reason to raise
exception (i.e. error) for that.
* Only show them when `--debug` option is set.

18 months agoCleanup: unused vars in last commit
Campbell Barton [Mon, 18 Mar 2019 09:30:05 +0000 (20:30 +1100)]
Cleanup: unused vars in last commit

18 months agoFix T58763: Sample color fails with mirror modifier
Campbell Barton [Mon, 18 Mar 2019 09:01:59 +0000 (20:01 +1100)]
Fix T58763: Sample color fails with mirror modifier

18 months agoCleanup: rename color band to color ramp
Campbell Barton [Mon, 18 Mar 2019 07:20:44 +0000 (18:20 +1100)]
Cleanup: rename color band to color ramp

18 months agoFix color ramp eyedropper menu item
Campbell Barton [Mon, 18 Mar 2019 06:41:37 +0000 (17:41 +1100)]
Fix color ramp eyedropper menu item

This couldn't be accessed because the poll function was checking the
active button.

Add a "color_ramp" context pointer which is set by the menu.

Alternative fix to D3984

18 months agoCleanup: spaces around operators in DNA headers
Campbell Barton [Mon, 18 Mar 2019 03:21:37 +0000 (14:21 +1100)]
Cleanup: spaces around operators in DNA headers

18 months agoCleanup: style, duplicate include
Campbell Barton [Mon, 18 Mar 2019 03:13:06 +0000 (14:13 +1100)]
Cleanup: style, duplicate include

18 months agoUI: clarify "Remap Relative" tooltip
Campbell Barton [Mon, 18 Mar 2019 02:57:16 +0000 (13:57 +1100)]
UI: clarify "Remap Relative" tooltip

Resolves T62612

18 months agoFix T62684: Crash transforming w/ snap enabled
Campbell Barton [Mon, 18 Mar 2019 02:42:53 +0000 (13:42 +1100)]
Fix T62684: Crash transforming w/ snap enabled

18 months agoFix T62685: Rename 'Align' to 'Only Origins'
Campbell Barton [Mon, 18 Mar 2019 02:28:00 +0000 (13:28 +1100)]
Fix T62685: Rename 'Align' to 'Only Origins'

The RNA name didn't match the name used in the UI,
making the quick favourites menu show this as 'Align'.

18 months agoCleanup: rename BLI_kdtree vars & args for clarity
Campbell Barton [Sun, 17 Mar 2019 23:21:45 +0000 (10:21 +1100)]
Cleanup: rename BLI_kdtree vars & args for clarity

18 months agoBLI_kdtree: refactor boids specific logic into callback
Campbell Barton [Sun, 17 Mar 2019 22:28:32 +0000 (09:28 +1100)]
BLI_kdtree: refactor boids specific logic into callback

Logic to for boids to avoid head-on collisions was in BLI_kdtree.

Move this into a callback which is now defined in boids.c
so the kdtree code can be kept generic.

18 months agoUI: add light/world settings in shader node editor.
Brecht Van Lommel [Sun, 17 Mar 2019 16:52:05 +0000 (17:52 +0100)]
UI: add light/world settings in shader node editor.

Material was already there. Implementation was changed so it's just a
single line of code to adapt a panel to the node editor.

18 months agoGPencil: Cleanup extra lines
Antonioya [Sun, 17 Mar 2019 19:04:09 +0000 (20:04 +0100)]
GPencil: Cleanup extra lines

18 months agoGPencil: Changes in Fill and new 3D Cursor View Plane
Antonioya [Sun, 17 Mar 2019 18:47:31 +0000 (19:47 +0100)]
GPencil: Changes in Fill and new 3D Cursor View Plane

This commit groups several options that were tested in grease pencil branch:

- Changes to fill algorithms and improves, specially in small areas and stroke corners.
  New options has been added in order to define how the fill is working and internally there are optimizations in detect the small areas in the extremes.

  Kudos to @charlie for coding this fill improvements.

- New 3D cursor view plane option.

  Now it's possible to lock the drawing plane to the 3D cursor and use the 3D cursor orientation. This allows more flexibility when you are drawing and reduce the need to create geometry to draw over surfaces.

- Canvas Grid now can be locked to 3D cursor.
- New option to reproject stroke using 3D cursor.
- Small tweaks and fixes.

Changes reviewed by @pepeland and @mendio

18 months agoFix T62570: Append Particles System not working properly.
Bastien Montagne [Sun, 17 Mar 2019 17:07:13 +0000 (18:07 +0100)]
Fix T62570: Append Particles System not working properly.

T62570 and T61796 show that we need two slightly different behaviors in
post-linking collection process:
* For linking, we never want to instantiate indirectly-linked
collections or objects.
* For appending however, since all collections and objects will become
local and hence need instantiation, we want to 'link to scene' all
collections first, better than instantiating the objects in the master
collection opf current scene.

18 months agoFix T62589: Particle system Instance Collection option fails to set a user for a...
Bastien Montagne [Sun, 17 Mar 2019 15:00:52 +0000 (16:00 +0100)]
Fix T62589: Particle system Instance Collection option fails to set a user for a linked collection.

Forgot to tag properly RNA property in rB439437fa3a44.

18 months agoFix T62240: Bleed artifacts with degenerate triangles
Luca Rood [Sun, 17 Mar 2019 14:40:46 +0000 (15:40 +0100)]
Fix T62240: Bleed artifacts with degenerate triangles

This makes degenerate triangles be ignored, as they cause artifacts and
don't contribute to the result anyway. There is an extra cost for
all triangles, to check if they are degenerate. Though not ideal, this
seems to be the safest solution at the moment (see code comments).

This commit also changes the clamp value for the bleed len_fact from 5
to 10, to give good corner results with some sharper angles, considering
they will be rounded later.

A lot of the texture paint initialization code could be optimized
by caching the results throughout the session, instead of rerunning it
for each stroke. Stroke initialization is way too expensive at the
moment, and does many redundant computations.

18 months agoFix T62678: Wrong text clipping
Jacques Lucke [Sun, 17 Mar 2019 13:15:26 +0000 (14:15 +0100)]
Fix T62678: Wrong text clipping

There are two issues at play here.
First, BLF_width computed a width that was not wide
enough to actually hold the text.
Second, blf_glyph_calc_rect_test computed an incorrect
rect->xmax when the glyph was moved to the left a bit.
We ignore the overlap on the left, but the right side
should still be adjusted accordingly.

18 months agoCocoa: Fix missing key window after closing "About"
Sergey Sharybin [Sun, 17 Mar 2019 11:14:09 +0000 (12:14 +0100)]
Cocoa: Fix missing key window after closing "About"

The cause of this issue goes deeper inside of the custom nature of
the event loop. In short, when not using [NSApp run] closing "About"
window does not make previous key window a key again.

The solution is quite similar to other projects, but we only force
key window from handler when closing one appears to be "About" window.
In all other cases we leave it up to Blender's window manager to make
decision and do not interfere with it.

Test plan:
- Open Blender application
- Go to Blender -> About Blender menu item
- Close About window
- Note that Blender's window does not become active again.

Reviewers: brecht

Reviewed By: brecht

Differential Revision:

18 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Sun, 17 Mar 2019 11:54:19 +0000 (12:54 +0100)]
Merge branch 'blender2.7'

18 months agoFix bl_pyapi_idprop unit test.
Howard Trickey [Sat, 16 Mar 2019 22:48:49 +0000 (18:48 -0400)]
Fix bl_pyapi_idprop unit test.

Scenes can now have a 'cycles' key when starting, so account for that.

18 months agoGPencil: Cancel all transformations in Draw mode
Antonioya [Sun, 17 Mar 2019 11:20:15 +0000 (12:20 +0100)]
GPencil: Cancel all transformations in Draw mode

Actually, when you press G/R/S in Draw mode, the transformations can be done, but this is annoying in draw mode and must be captured an cancel.

This patch capture the transformation and cancel it.

Reviewed by @brecht

18 months agoCleanup: remove unused buildbot code.
Brecht Van Lommel [Sun, 17 Mar 2019 02:02:00 +0000 (03:02 +0100)]
Cleanup: remove unused buildbot code.

18 months agoFix Windows 32bit buildbot trying to use CUDA, should be disabled.
Brecht Van Lommel [Sun, 17 Mar 2019 01:56:22 +0000 (02:56 +0100)]
Fix Windows 32bit buildbot trying to use CUDA, should be disabled.

18 months agoCycles: optimization for constant background colors.
Brecht Van Lommel [Tue, 19 Feb 2019 16:44:58 +0000 (17:44 +0100)]
Cycles: optimization for constant background colors.

Skip shader evaluation then, as we already do for lights. Less than
1% faster in my tests, but might as well be consistent for both.

18 months agoFix Cycles OpenCL compile waiting unnecessarily for background shader.
Brecht Van Lommel [Sun, 17 Mar 2019 00:56:08 +0000 (01:56 +0100)]
Fix Cycles OpenCL compile waiting unnecessarily for background shader.

Makes preview kernel appear quicker when background color is fixed.

18 months agoCleanup: simplify kernel features definition.
Brecht Van Lommel [Sat, 16 Mar 2019 15:45:50 +0000 (16:45 +0100)]
Cleanup: simplify kernel features definition.

No functional changes, logic here got too complex after many changes over
the years.

18 months agoCleanup: remove unused code.
Brecht Van Lommel [Sat, 16 Mar 2019 13:59:31 +0000 (14:59 +0100)]
Cleanup: remove unused code.

18 months agoFix Cycles not doing versioning for some files saved in 2.80.
Brecht Van Lommel [Sat, 16 Mar 2019 22:36:34 +0000 (23:36 +0100)]
Fix Cycles not doing versioning for some files saved in 2.80.

18 months agoFix string size passed into name prefix function
Campbell Barton [Sun, 17 Mar 2019 08:48:09 +0000 (19:48 +1100)]
Fix string size passed into name prefix function

18 months agoCleanup: unused variables
Campbell Barton [Sun, 17 Mar 2019 10:13:25 +0000 (21:13 +1100)]
Cleanup: unused variables

18 months agoCleanup: unused imports
Campbell Barton [Sun, 17 Mar 2019 09:57:47 +0000 (20:57 +1100)]
Cleanup: unused imports

18 months agoCleanup: redundant layer access
Campbell Barton [Sun, 17 Mar 2019 08:39:21 +0000 (19:39 +1100)]
Cleanup: redundant layer access

18 months agoCleanup: use braces for BLI_kdtree
Campbell Barton [Sun, 17 Mar 2019 08:29:38 +0000 (19:29 +1100)]
Cleanup: use braces for BLI_kdtree

18 months agoCleanup: remove redundant check
Campbell Barton [Sun, 17 Mar 2019 08:19:12 +0000 (19:19 +1100)]
Cleanup: remove redundant check

18 months agoRemove 3DS add-on from factory startup.
Bastien Montagne [Sun, 17 Mar 2019 08:42:57 +0000 (09:42 +0100)]
Remove 3DS add-on from factory startup.

18 months agoGPencil: Fix missing guide topbar menu
Antonioya [Sun, 17 Mar 2019 08:33:23 +0000 (09:33 +0100)]
GPencil: Fix missing guide topbar menu

This bug was introduced in previous commit

18 months agoCleanup: remove Cycles advanced shading features toggle.
Brecht Van Lommel [Sat, 16 Mar 2019 15:06:36 +0000 (16:06 +0100)]
Cleanup: remove Cycles advanced shading features toggle.

It's effectively always enabled, only not on some unsupported OpenCL devices.
For testing those it's not useful to disable these features. This is replaced
by the more fine grained feature toggles that we have now.

18 months agoCleanup: rename DEPRECATED to UNUSED
Campbell Barton [Sat, 16 Mar 2019 23:28:08 +0000 (10:28 +1100)]
Cleanup: rename DEPRECATED to UNUSED

While the flags have been deprecated they're currently unused.
Rename for clarity.

18 months agoCleanup: improve comments.
mano-wii [Sat, 16 Mar 2019 21:20:57 +0000 (18:20 -0300)]
Cleanup: improve comments.

18 months agoED View3d: Fix possible bug when subtracting unsigned ints.
mano-wii [Sat, 16 Mar 2019 21:10:15 +0000 (18:10 -0300)]
ED View3d: Fix possible bug when subtracting unsigned ints.

Related to rB681661dbed12.

18 months agoPython API: add Python-defined node groups for shaders and compositing.
Miguel Porces [Sat, 16 Mar 2019 17:48:22 +0000 (18:48 +0100)]
Python API: add Python-defined node groups for shaders and compositing.

This was already supported for Cycles shader nodes, but now also works for
Eevee and compositing nodes. Instead of a generic NodeCustomGroup, now
there is ShaderNodeCustomGroup and CompositorNodeCustomGroup that can be
subclassed and registered.

Differential Revision:

18 months agoFix ID user counting issues with NodeCustomGroup.
Miguel Porces [Sat, 16 Mar 2019 17:54:00 +0000 (18:54 +0100)]
Fix ID user counting issues with NodeCustomGroup.

User counting now happens before init() and after free() methods, so that
the ID users are in a valid state when Python might modify them. ID user
counting was moved into node.c and simplified.

Patch by Miguel with further refactoring by Brecht. Ref D4370.

18 months agoCleanup: fix compiler warnings.
Brecht Van Lommel [Sat, 16 Mar 2019 18:48:28 +0000 (19:48 +0100)]
Cleanup: fix compiler warnings.

18 months agoGPencil: Fix compiler warning
Antonioya [Sat, 16 Mar 2019 19:05:15 +0000 (20:05 +0100)]
GPencil: Fix compiler warning

The fill flag was wrong and it was checking the color, not a flag.

18 months agoGPencil: Fix layers topbar panel
Antonioya [Sat, 16 Mar 2019 18:21:19 +0000 (19:21 +0100)]
GPencil: Fix layers topbar panel

After a previous commit to fix the pin panels, this line was not working as expected. As this variable is not used, the line can be removed.

18 months agoGPencil: Disable Pressure for Block brush
Antonioya [Sat, 16 Mar 2019 17:56:07 +0000 (18:56 +0100)]
GPencil: Disable Pressure for Block brush

18 months agoFix T62576: The remaining two unported official add-ons: X3D and 3DS.
Bastien Montagne [Sat, 16 Mar 2019 12:00:17 +0000 (13:00 +0100)]
Fix T62576: The remaining two unported official add-ons: X3D and 3DS.

X3D has been (basically) ported in rBAe8da70ab73d2dd5ff46, and 3DS has
been downgraded to 'community' support, so we can get rid of that ugly
'slience warning' hack.

18 months agoUI: Remove redundant 'settings' from GPencil Tool Properties panel titles
William Reynish [Sat, 16 Mar 2019 11:54:08 +0000 (12:54 +0100)]
UI: Remove redundant 'settings' from GPencil Tool Properties panel titles

18 months agoCorrect error in 6aebb5a4d5f5c
Campbell Barton [Sat, 16 Mar 2019 10:49:33 +0000 (21:49 +1100)]
Correct error in 6aebb5a4d5f5c

18 months agoDRW: support clipping for armature bone axes
Campbell Barton [Sat, 16 Mar 2019 07:41:34 +0000 (18:41 +1100)]
DRW: support clipping for armature bone axes

Also minor changes to make empty axis match armature axis.

18 months agoDRW: support clipping for envelope armature draw type
Campbell Barton [Sat, 16 Mar 2019 07:01:22 +0000 (18:01 +1100)]
DRW: support clipping for envelope armature draw type

18 months agoDRW: support clipping for relationship lines
Campbell Barton [Sat, 16 Mar 2019 06:37:08 +0000 (17:37 +1100)]
DRW: support clipping for relationship lines

18 months agoFix T62555 Viewport borders flicker when splitting said viewport
Clément Foucault [Sat, 16 Mar 2019 02:57:51 +0000 (03:57 +0100)]
Fix T62555 Viewport borders flicker when splitting said viewport

18 months agoCMake: disable jemalloc when building as a Python module
Campbell Barton [Sat, 16 Mar 2019 02:05:54 +0000 (13:05 +1100)]
CMake: disable jemalloc when building as a Python module

18 months agoFix T61526 hair doesn't render in workbench but does with openGL
Clément Foucault [Sat, 16 Mar 2019 01:47:03 +0000 (02:47 +0100)]
Fix T61526 hair doesn't render in workbench but does with openGL

18 months agoCleanup: use return args last
Campbell Barton [Sat, 16 Mar 2019 00:38:55 +0000 (11:38 +1100)]
Cleanup: use return args last

18 months agoFix T60803 Artifacts with SSR + Reflection Plane + 0 roughness
Clément Foucault [Fri, 15 Mar 2019 23:50:50 +0000 (00:50 +0100)]
Fix T60803 Artifacts with SSR + Reflection Plane + 0 roughness

Tweaked the tracing parameters again to avoid rays terminated before first

18 months agoFix __func__ being passed as an output string, also warnings
Campbell Barton [Fri, 15 Mar 2019 23:12:47 +0000 (10:12 +1100)]
Fix __func__ being passed as an output string, also warnings

18 months agoFix T55620 Artifacts with SSR and planar reflection
Clément Foucault [Fri, 15 Mar 2019 22:31:41 +0000 (23:31 +0100)]
Fix T55620 Artifacts with SSR and planar reflection

Was caused by 0 pixel extent rays which did not trace at all. Bumping the
threshold for degenerate rays fixes it.

18 months agoFix T62621 object scale changes tangent node output in Eevee
Clément Foucault [Fri, 15 Mar 2019 21:28:18 +0000 (22:28 +0100)]
Fix T62621 object scale changes tangent node output in Eevee

Normal Matrices were not normalized, leading to non-normalized vector
rotations results.

18 months agoEevee: Fix tangent being renormalized after interpolation
Clément Foucault [Fri, 15 Mar 2019 21:24:46 +0000 (22:24 +0100)]
Eevee: Fix tangent being renormalized after interpolation

18 months agoEevee: DOF: Optimization: Move some operations out of the shader
Clément Foucault [Fri, 15 Mar 2019 21:17:07 +0000 (22:17 +0100)]
Eevee: DOF: Optimization: Move some operations out of the shader

18 months agoFix T61857 Eevee DOF not working if the camera is in orthographic mode
Clément Foucault [Fri, 15 Mar 2019 21:14:42 +0000 (22:14 +0100)]
Fix T61857 Eevee DOF not working if the camera is in orthographic mode

It was just a bad mapping of the ogl depth to scene linear depth.

18 months agoParticle: Remove Billboard Particle code
Clément Foucault [Fri, 15 Mar 2019 19:56:29 +0000 (20:56 +0100)]
Particle: Remove Billboard Particle code

The billboard particles were only used by Blender Internal. So until it is
supported by Cycles of Eevee there is no reason to keep it in the code and

Fix T61695 Billboard particles not displaying in Eevee viewport, render

18 months agoSilence warning from recent GPU simplify commit
Dalai Felinto [Fri, 15 Mar 2019 21:14:24 +0000 (18:14 -0300)]
Silence warning from recent GPU simplify commit

Said commit introduced warnings and build problens. Let's be more
careful in the future. Warnings are not to be treated lightly either.

18 months agoFix compiling after last commit
Jens Verwiebe [Fri, 15 Mar 2019 21:07:09 +0000 (22:07 +0100)]
Fix compiling after last commit

18 months agoGPU: Simplify select shaders.
mano-wii [Fri, 15 Mar 2019 19:02:55 +0000 (16:02 -0300)]
GPU: Simplify select shaders.

This commit allows the drawing of the mesh select ids to be done on a 32UI format texture.
This simplifies the shader that previously acted on the backbuffer and had to do an uint to rgba conversion.

Differential Revision:

18 months agoRemove object hide_* operators from outliner keymap
Dalai Felinto [Fri, 15 Mar 2019 19:19:35 +0000 (16:19 -0300)]
Remove object hide_* operators from outliner keymap

We already have dedicated outliner visibility operators that not only
take precedent over those ones, but also unhide collections as well.

No change for the end user. That said, since I added the outliner
hide/unhide operators I assumed that newly visible objects are to be
selected. That can change in a separate commit, but it should be done
by changing OUTLINER_OT_unhide_all.

Reviewers: brecht

Differential Revision:

18 months agoFix T62438: Unhide all doesn't set newly visible objects to selected
Dalai Felinto [Fri, 15 Mar 2019 19:14:21 +0000 (16:14 -0300)]
Fix T62438: Unhide all doesn't set newly visible objects to selected

The select option in the operator was never working because we were
trying to select an object considered unselectable (since it was hidden).

Reviewers: brecht

Differential Revision:

18 months agoFix T62313 - No way to remove object from master collection in 3d view
Dalai Felinto [Tue, 12 Mar 2019 22:55:33 +0000 (19:55 -0300)]
Fix T62313 - No way to remove object from master collection in 3d view

This introduces a new iterator, FOREACH_COLLECTION, that unlike the
FOREACH_SCENE_COLLECTION it iterates over all the Blender file
collections, including the scene master collection, as well the database
ones (bmain).

Reviewers: brecht

18 months agoFix T62320: Outliner collection disable not propagating to other view layers
Dalai Felinto [Fri, 15 Mar 2019 18:35:17 +0000 (15:35 -0300)]
Fix T62320: Outliner collection disable not propagating to other view layers

The moment you switched to another view layer the visibility was still

18 months agoFix T62608: many tools in the toolbar not working.
Brecht Van Lommel [Fri, 15 Mar 2019 18:29:20 +0000 (19:29 +0100)]
Fix T62608: many tools in the toolbar not working.

The keymap names still use the label, so use that again for looking up the
keymap so things work again after recent changes.

18 months agoFix T59943 Color banding present in Workbench render but not in viewport
Clément Foucault [Fri, 15 Mar 2019 18:27:54 +0000 (19:27 +0100)]
Fix T59943 Color banding present in Workbench render but not in viewport

I don't really like forcing RGBA16F for Albedo render but that's ok since
the texture is shared with the effect_fb.

18 months agoTests: remove unnecessary _test postfix on test names.
Brecht Van Lommel [Fri, 15 Mar 2019 18:11:33 +0000 (19:11 +0100)]
Tests: remove unnecessary _test postfix on test names.

18 months agoFix T62601: parenting to curve (follow path) causes offset
Philipp Oeser [Fri, 15 Mar 2019 15:15:37 +0000 (16:15 +0100)]
Fix T62601: parenting to curve (follow path) causes offset

Similar to T60623 / rB2894e75121d7.
Issue (when parenting with 'Follow Curve') is that the curves
CU_FOLLOW flag is set on the original, but not the
evaluated curve (yet), leading to misbehaviour in 'ob_parcurve()'.
Setting this on both now.

Reviewers: sergey

Maniphest Tasks: T62601

Differential Revision:

18 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Fri, 15 Mar 2019 17:31:48 +0000 (18:31 +0100)]
Merge branch 'blender2.7'

18 months agoCycles: upgrade to CUDA 10.1 as the one officially supported version.
Brecht Van Lommel [Fri, 15 Mar 2019 13:18:22 +0000 (14:18 +0100)]
Cycles: upgrade to CUDA 10.1 as the one officially supported version.

This version fixes various bugs, and there is no need anymore to use both
9.1 and 10.0 for different cards.

There is a bug related to WITH_CYCLES_CUBIN_COMPILER and bump mapping in the
regression tests, so that remains disabled same as it was for CUDA 10.0.

Fix T59286: CUDA bake failing on some cards.
Fix T56858: CUDA 9.2 and 10 issues.

18 months agoFix cycles preferences.get_devices() not returning all devices as before.
Brecht Van Lommel [Fri, 15 Mar 2019 14:26:18 +0000 (15:26 +0100)]
Fix cycles preferences.get_devices() not returning all devices as before.

It only returned those for the active device type. For backwards compatibility
return them all again, but still avoid enumerating them from our own code on
startup or opening preferences.

18 months agoMerge branch 'blender2.7'
Jeroen Bakker [Fri, 15 Mar 2019 15:28:33 +0000 (16:28 +0100)]
Merge branch 'blender2.7'

18 months agoCycles/OpenCL: Compile Kernels During Scene Update
Jeroen Bakker [Wed, 13 Mar 2019 11:31:48 +0000 (12:31 +0100)]
Cycles/OpenCL: Compile Kernels During Scene Update

The main goals of this change is faster starting when using foreground

This patch will build kernels in parallel to the update process of
the scene. When these optimized kernels are not available (yet) an AO
kernel will be used.

These AO kernels are fast to compile (3-7 seconds) and can be
reused by all scenes. When the final kernels become available we
will switch to these kernels.

In background mode the AO kernels will not be used.
Some kernels are being used during Scene update (displace, background
light). When these kernels are being used the process can halt until
these become available.

Reviewed By: brecht, #cycles

Maniphest Tasks: T61752

Differential Revision:

18 months agoFix T62614: Copy eevee settings when scene is copied
Jacques Lucke [Fri, 15 Mar 2019 15:06:30 +0000 (16:06 +0100)]
Fix T62614: Copy eevee settings when scene is copied

Reviewers: brecht, fclem

Differential Revision:

18 months agoFix T62594: Truncated text in UI
Jacques Lucke [Fri, 15 Mar 2019 14:12:42 +0000 (15:12 +0100)]
Fix T62594: Truncated text in UI

Reviewers: brecht, billreynish

Differential Revision:

18 months agoFix: "Jump To Target" showing up in workspace context menu
Dalai Felinto [Fri, 15 Mar 2019 13:49:26 +0000 (10:49 -0300)]
Fix: "Jump To Target" showing up in workspace context menu

Issue introduced on d227c58e3ec2020.

This was affecting WorkSpaces as well as background scene and probably
other places. We use the operator poll to decide whether to show it.

Reviewers: brecht, mont29

Differential Revision:

18 months agoFix T62592: GPencil layer activation from outliner needed two clicks
Antonioya [Fri, 15 Mar 2019 13:38:40 +0000 (14:38 +0100)]
Fix  T62592: GPencil layer activation from outliner needed two clicks

For some reason, the code was commented and we missed to enable it again.

18 months agoFix T62284: apply a retroactive fix for T57366 to old files.
Alexander Gavrilov [Fri, 15 Mar 2019 11:58:04 +0000 (14:58 +0300)]
Fix T62284: apply a retroactive fix for T57366 to old files.

18 months agoUI: rename object Boundary back to Bounds, it's not the same thing.
Brecht Van Lommel [Fri, 15 Mar 2019 11:16:35 +0000 (12:16 +0100)]
UI: rename object Boundary back to Bounds, it's not the same thing.

18 months agoCorrect tool name (missed in recent update)
Campbell Barton [Fri, 15 Mar 2019 09:32:49 +0000 (20:32 +1100)]
Correct tool name (missed in recent update)

18 months agoFix T62297: Grease Pencil dots drawing crashes Blender
Antonioya [Fri, 15 Mar 2019 09:07:18 +0000 (10:07 +0100)]
Fix T62297: Grease Pencil dots drawing crashes Blender

Fix again this bug. Maybe it was introduced when change how wireframe mode by object works.

18 months agoCleanup: unused imports
Campbell Barton [Fri, 15 Mar 2019 08:45:21 +0000 (19:45 +1100)]
Cleanup: unused imports

18 months agoCycles/OpenCL: Added missing opencl programs
Jeroen Bakker [Fri, 15 Mar 2019 07:11:28 +0000 (08:11 +0100)]
Cycles/OpenCL: Added missing opencl programs

The functions that determine the program name + filename of kernels
were missing some base kernels like denoising and base. For completeness
I added those kernels so the function returns the correct results.