blender.git
2 months agoSculpt: Pose Brush Scale/Transform deform mode
Pablo Dobarro [Mon, 18 May 2020 23:04:37 +0000 (01:04 +0200)]
Sculpt: Pose Brush Scale/Transform deform mode

This is an alternative deformation brush for the Pose Brush intended
quickly change the proportions of the mesh. The regular mode scales
using the segment's origin as a pivot. The inverted mode drags the
entire segment using the grab delta.

The only difference with the regular pose brush is that it is not
compatible with IK, so the option is disabled and set to 1 segment. The
rest of the options should work as expected.

Reviewed By: sergey

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

2 months agoFix T76957: Rigid body "Animated" text cutoff
Julian Eisel [Mon, 25 May 2020 15:24:48 +0000 (17:24 +0200)]
Fix T76957: Rigid body "Animated" text cutoff

Removes the flow layout from the panel. No reason to use that here,
surrounding code doesn't either. Probably an unintentional left-over.

2 months agoUI/Physics: Show error enabling Rigid Body if compiled without Bullet
Julian Eisel [Mon, 25 May 2020 14:26:22 +0000 (16:26 +0200)]
UI/Physics: Show error enabling Rigid Body if compiled without Bullet

Would just silently fail, which is confusing.
Should only impact custom builds.

2 months agoMerge remote-tracking branch 'origin/blender-v2.83-release'
Dalai Felinto [Mon, 25 May 2020 14:37:43 +0000 (16:37 +0200)]
Merge remote-tracking branch 'origin/blender-v2.83-release'

2 months agoRevert "UI: View3D Cursor Changes"
Dalai Felinto [Mon, 25 May 2020 09:53:02 +0000 (11:53 +0200)]
Revert "UI: View3D Cursor Changes"

This change is yet to be followed by a more comprehensive design
proposal including:

* How to differentiate the modes apart.
* More clear definition of tools and the rules for their components (gizmo, cursor).
* Selection as a non-tool vs drag option.

This can be revisited for 2.90 with more time. For now the UI team
agrees to revert this.

--
This reverts commit 4aa703aa1430bc53f19e2cc7182e70db1a916f13.

2 months agoFix building after rBdeaff945d0b9... sic.
Bastien Montagne [Mon, 25 May 2020 14:07:37 +0000 (16:07 +0200)]
Fix building after rBdeaff945d0b9... sic.

2 months agoVR: Fix big performance bottleneck for simple scenes
Julian Eisel [Sun, 24 May 2020 15:26:31 +0000 (17:26 +0200)]
VR: Fix big performance bottleneck for simple scenes

Blender's main loop puts the main thread to sleep for 5ms if no user input was
received from the OS. We never want that to happen while the VR session is
running, which runs on the main thread too.

For simpler scenes, where the viewport already draws fast, this may have quite
some impact. E.g. in my tests, the classroom scene went from ~55 to quite
stable 90 FPS in solid mode (total render time as measured and averaged by
Windows Mixed Reality utilities). With Eevee, it only went from 41 to 47 FPS.
In complex files, there's barely a difference. E.g. less than 1 FPS increase in
a Spring file (both Solid mode and Eevee).

2 months agoFix T76941: "Set Inverse" in Child Of constraint broken with armatures
Sybren A. Stüvel [Mon, 25 May 2020 13:34:54 +0000 (15:34 +0200)]
Fix T76941: "Set Inverse" in Child Of constraint broken with armatures

When the Child Of constraint is owned by a bone, before the constraint is
run the matrix is converted from world to pose space. However, setting the
inverse should also take the armature object's transform into account.

2 months agoMerge branch 'blender-v2.83-release'
Bastien Montagne [Mon, 25 May 2020 13:43:54 +0000 (15:43 +0200)]
Merge branch 'blender-v2.83-release'

Conflicts:
source/blender/blenkernel/intern/lib_id.c

2 months agoCleanup: ID makelocal code: remove useless and confusing debug code.
Bastien Montagne [Mon, 25 May 2020 13:38:36 +0000 (15:38 +0200)]
Cleanup: ID makelocal code: remove useless and confusing debug code.

Thing is, user code should not have the responsibility to check that
libquery is valid. Such checks are only source of confusion and errors
as nobody will think about finding and updating them in some obscure
specific area of the code...

2 months agoLibquery: Refactor: add bmain to data passed to callback.
Bastien Montagne [Mon, 25 May 2020 13:26:58 +0000 (15:26 +0200)]
Libquery: Refactor: add bmain to data passed to callback.

No reason to enforce defining own callback user data for something that
controlling has already available...

2 months agoFix T76997: bad handling of embedded IDs in partial append.
Bastien Montagne [Mon, 25 May 2020 13:11:36 +0000 (15:11 +0200)]
Fix T76997: bad handling of embedded IDs in partial append.

Code dealing with embedded data was pre-existing proper generic
handling of those by `BKE_library_foreach_ID_link()` - and was never
updated for scene's master collection it would seem...

Note that such fix/refactor is a bit risky at this point in the release
cycle, but on the other end previous situation was really broken. So
finger crossed. :|

2 months agoFix T76997: bad handling of embedded IDs in partial append.
Bastien Montagne [Mon, 25 May 2020 13:11:36 +0000 (15:11 +0200)]
Fix T76997: bad handling of embedded IDs in partial append.

Code dealing with embedded data was pre-existing proper generic
handling of those by `BKE_library_foreach_ID_link()` - and was never
updated for scene's master collection it would seem...

Note that such fix/refactor is a bit risky at this point in the release
cycle, but on the other end previous situation was really broken. So
finger crossed. :|

2 months agoMesh: skip conversion from edit-mesh to mesh in edit-mode
Campbell Barton [Mon, 25 May 2020 10:16:42 +0000 (20:16 +1000)]
Mesh: skip conversion from edit-mesh to mesh in edit-mode

This resolves a performance regression in 2.8x where every edit-mode
update performed an edit-mesh to mesh conversion.

Now the conversion will be lazily initialized if/when it's required.

New BKE_mesh_wrapper_* functions abstract over mesh data access.
Currently only edit-mesh and regular meshes are supported.
In the future sub-surface meshes may be supported too.

2 months agoMerge branch 'blender-v2.83-release'
Philipp Oeser [Mon, 25 May 2020 12:10:20 +0000 (14:10 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix autokeyframing masks not updating properly
Philipp Oeser [Tue, 19 May 2020 10:36:10 +0000 (12:36 +0200)]
Fix autokeyframing masks not updating properly

Spotted while looking into T76872

Maniphest Tasks: T76872

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

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Mon, 25 May 2020 11:43:54 +0000 (21:43 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoTests: correct the blender path for non-portable installations
Campbell Barton [Mon, 25 May 2020 11:28:03 +0000 (21:28 +1000)]
Tests: correct the blender path for non-portable installations

2 months agoCleanup: unused variable warnings
Campbell Barton [Mon, 25 May 2020 11:03:45 +0000 (21:03 +1000)]
Cleanup: unused variable warnings

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Mon, 25 May 2020 11:01:38 +0000 (21:01 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Mon, 25 May 2020 11:01:34 +0000 (21:01 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoGTest: BLI_ghash_performance_test was failing
Campbell Barton [Mon, 25 May 2020 10:46:56 +0000 (20:46 +1000)]
GTest: BLI_ghash_performance_test was failing

Change the seed from 0 to 1, so BLI_ghash_performance_test doesn't
assert with duplicate keys.

2 months agoFix T76990: Crash shortest path select with 'face stepping' when no faces.
Bastien Montagne [Mon, 25 May 2020 10:44:10 +0000 (12:44 +0200)]
Fix T76990: Crash shortest path select with 'face stepping' when no faces.

Note that this sometimes gives no solution when there is a mix of edges
with and without faces... But at leat this should be safe fix.

2 months agoTask: Graph Flow Task Scheduling
Jeroen Bakker [Mon, 25 May 2020 10:24:56 +0000 (12:24 +0200)]
Task: Graph Flow Task Scheduling

Add TBB::flow graph scheduling to BLI_task.

Using flow graphs, a graph of nodes (tasks) and links can be defined.
Work can flow though the graph. During this process the execution of the nodes will be
scheduled among the available threads.

We are planning to use this to improve the threading in the draw manager.

The implemented API is still limited it only supports sequential flows. Joins and buffers
are not supported. We could eventually support them as part of an CPP API. These features
from uses compile time templates and are hard to make a clean C-API for this.

Reviewed By: Sergey Sharybin, Brecht van Lommel

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

2 months agoSimulations: pass simulation data block to update function
Jacques Lucke [Mon, 25 May 2020 10:23:03 +0000 (12:23 +0200)]
Simulations: pass simulation data block to update function

2 months agoinstall_deps: update libraries versions.
Bastien Montagne [Mon, 25 May 2020 09:50:22 +0000 (11:50 +0200)]
install_deps: update libraries versions.

- FFMPEG: 4.3.2
- OpenSubDiv: 3.4.3
- OpenXR SDK: 1.0.8
- Switch form SDL 1.2 to SDL 2.0

Re T77035, T77007, T77010 and T77011

2 months agoCleanup: typo
Jacques Lucke [Mon, 25 May 2020 09:39:52 +0000 (11:39 +0200)]
Cleanup: typo

2 months agoMerge remote-tracking branch 'origin/blender-v2.83-release'
Sybren A. Stüvel [Mon, 25 May 2020 08:45:39 +0000 (10:45 +0200)]
Merge remote-tracking branch 'origin/blender-v2.83-release'

2 months agoFix T76897: Lamp Power Not Updating from Driver
Sybren A. Stüvel [Mon, 25 May 2020 08:07:10 +0000 (10:07 +0200)]
Fix T76897: Lamp Power Not Updating from Driver

Lamps were not tagged with `ID_RECALC_SHADING` when they were updated
from drivers. As a result, Cycles considered the lamp as unchanged. This
is resolved by having a (seemingly non-functional) callback in a new
`LIGHT_UPDATE` depsgraph node.

This patch unconditionally adds the `LIGHT_UPDATE` node + the relation
from the lamp's PARAMETERS node.

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

Reviewed by: brecht

2 months agoFix crash when converting BMesh to Mesh with shape keys
Sybren A. Stüvel [Mon, 25 May 2020 07:43:01 +0000 (09:43 +0200)]
Fix crash when converting BMesh to Mesh with shape keys

The `BM_mesh_bm_to_me()` function copies shape keys from the BMesh to
the Mesh. However, it tries to copy the same number of shape keys as are
defined on the target mesh. Since the target mesh does not necessarily
have the same number of shape keys as the BMesh, this would crash if the
target Mesh has more.

Found while performing some tests for {D7785}.

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

Reviewed by: brecht

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Mon, 25 May 2020 05:55:54 +0000 (15:55 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix T77031: Blender as pymodule crashes when rendering
Campbell Barton [Mon, 25 May 2020 05:35:51 +0000 (15:35 +1000)]
Fix T77031: Blender as pymodule crashes when rendering

No longer enforce WITH_HEADLESS when building as a Python module
as it disables GPU access which is needed for rendering.

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Mon, 25 May 2020 05:01:01 +0000 (15:01 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Mon, 25 May 2020 05:00:58 +0000 (15:00 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoCleanup: make format
Campbell Barton [Mon, 25 May 2020 04:55:48 +0000 (14:55 +1000)]
Cleanup: make format

2 months agoCMake: disable WITH_USD with blender_lite configurations
Campbell Barton [Mon, 25 May 2020 04:53:54 +0000 (14:53 +1000)]
CMake: disable WITH_USD with blender_lite configurations

2 months agoPy Docs: Update Sphinx and Theme Dependencies
Aaron Carlisle [Sun, 24 May 2020 23:23:28 +0000 (19:23 -0400)]
Py Docs: Update Sphinx and Theme Dependencies

`sphinx_rtd_theme==0.5.0rc1` probably should not be used for 2.83 but it
would be nice to test

2 months agoDeps: ffmpeg 4.2.3 + codecs update
Ray Molenkamp [Sun, 24 May 2020 21:18:39 +0000 (15:18 -0600)]
Deps: ffmpeg 4.2.3 + codecs update

This diff updates:
FFmpeg : 4.3.2
libogg : 1.3.4
flac   : 1.3.3
vpx    : 1.8.2
xvid   : 1.3.7
x264   : 33f9e1474613f59392be5ab6a7e7abf60fa63622

x264 seemingly has given up on even providing snapshots
and has been updated to the latest hash available at
this time.

faad has been removed since ffmpeg has not supported
it since 2010.

2 months agoMerge branch 'blender-v2.83-release'
Richard Antalik [Sun, 24 May 2020 19:14:23 +0000 (21:14 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix(unreported): Crash on prefetching while transforming strip.
Richard Antalik [Sun, 24 May 2020 18:52:59 +0000 (20:52 +0200)]
Fix(unreported): Crash on prefetching while transforming strip.

While investigating T76274, I found crash scenario when playhead is near end
frame and moving a strip. It is not as easy to reproduce, about 5% success
rate, and it will be even harder after rB4066c921fbe5. Exact cause wasn't
identified yet.

I wanted to disable prefetching during modal operator execution in VSE, but
currently I don't have any signalling method in place. Checking for G.moving
seems to resolve this problem, but it doesn't adress root cause of bug.

Reviewed By: brecht

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

2 months agoVR: Fix big performance bottleneck for simple scenes
Julian Eisel [Sun, 24 May 2020 15:26:31 +0000 (17:26 +0200)]
VR: Fix big performance bottleneck for simple scenes

Blender's main loop puts the main thread to sleep for 5ms if no user input was
received from the OS. We never want that to happen while the VR session is
running, which runs on the main thread too.

For simpler scenes, where the viewport already draws fast, this may have quite
some impact. E.g. in my tests, the classroom scene went from ~55 to quite
stable 90 FPS in solid mode (total render time as measured and averaged by
Windows Mixed Reality utilities). With Eevee, it only went from 41 to 47 FPS.
In complex files, there's barely a difference. E.g. less than 1 FPS increase in
a Spring file (both Solid mode and Eevee).

2 months agoFix T77000: Preferences window can not be opened from script operator
Julian Eisel [Sat, 23 May 2020 20:48:05 +0000 (22:48 +0200)]
Fix T77000: Preferences window can not be opened from script operator

The operators to open the Preferences, Driver Editor, or Info Log window did
not work when executed from another operator or the Python console. Should work
for all of these now.

I considered using operator properties instead, so the position could be set by
a script, with some fallback (e.g. current window center). But decided that's
not really worth the boilerplate and decreased code readability. Can still be
done if there's a need for it.

2 months agoMerge branch 'blender-v2.83-release'
Antonio Vazquez [Sun, 24 May 2020 08:22:28 +0000 (10:22 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T77003: GPencil Paint presets not initializated
Antonio Vazquez [Sun, 24 May 2020 08:22:03 +0000 (10:22 +0200)]
Fix T77003: GPencil Paint presets not initializated

In som ecases, the Paint was not ready when the brushes and palette were created. Now, first the paint is checked.

2 months agoDeps : XR_OpenXR_SDK 1.0.8
Ray Molenkamp [Sat, 23 May 2020 21:58:15 +0000 (15:58 -0600)]
Deps : XR_OpenXR_SDK 1.0.8

2 months agodeps: SDL 2.0.12
Ray Molenkamp [Sat, 23 May 2020 21:41:44 +0000 (15:41 -0600)]
deps: SDL 2.0.12

2 months agoDeps: OpenSubDiv 3.4.3
Ray Molenkamp [Sat, 23 May 2020 21:21:28 +0000 (15:21 -0600)]
Deps: OpenSubDiv 3.4.3

2 months agoDeps: Freetype 2.10.2
Ray Molenkamp [Sat, 23 May 2020 20:37:17 +0000 (14:37 -0600)]
Deps: Freetype 2.10.2

2 months agodeps: OpenAL 1.20.1
Ray Molenkamp [Sat, 23 May 2020 20:02:34 +0000 (14:02 -0600)]
deps: OpenAL 1.20.1

2 months agoMerge branch 'blender-v2.83-release'
Nathan Craddock [Sat, 23 May 2020 16:43:41 +0000 (10:43 -0600)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76578: Show bone visibility driver in outliner
Nathan Craddock [Sat, 23 May 2020 16:07:51 +0000 (10:07 -0600)]
Fix T76578: Show bone visibility driver in outliner

Allow setting drivers and keyframes for the bone visibility restriction
icon in the outliner. Before the button was a simple icon button, but it
is now connected to the RNA property to show the driven or keyframed
state.

Also when hiding a bone from the outliner it would be deselected, but
from the properties editor it would remain selected. This moves the
deselection to the RNA update function to ensure the bone is always
deselected.

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

2 months agoMerge branch 'blender-v2.83-release'
Antonio Vazquez [Sat, 23 May 2020 13:26:24 +0000 (15:26 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoGPencil: Fix unreported Noise modifier does not work in axis aligned strokes
Antonio Vazquez [Sat, 23 May 2020 13:25:54 +0000 (15:25 +0200)]
GPencil: Fix unreported Noise modifier does not work in axis aligned strokes

If the stroke is totally straight, the normal was not calculated properly.

2 months agoCycles: Improve sampling of area lights
Antony Ryakiotakis [Sat, 23 May 2020 12:21:49 +0000 (14:21 +0200)]
Cycles: Improve sampling of area lights

This patch uses the sampling method described in "A Low Distortion Map Between Triangle and Square" by Eric Heitz.
The benefit is avoiding sqrt in the calculation, which could be cheaper on some architectures, and the result is
more even sampling across the triangle surface.

Based on ideas from
https://pharr.org/matt/blog/2019/02/27/triangle-sampling-1.html
https://pharr.org/matt/blog/2019/03/13/triangle-sampling-1.5.html

Reviewed By: Brecht Van Lommel

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

2 months agoMerge branch 'blender-v2.83-release'
Brecht Van Lommel [Fri, 22 May 2020 20:59:02 +0000 (22:59 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoCleanup: remove unnecessary NULL test
Brecht Van Lommel [Wed, 20 May 2020 14:20:22 +0000 (16:20 +0200)]
Cleanup: remove unnecessary NULL test

2 months agoCleanup: silence deprecation warnings of Carbon Finder Favorites items
Ankit [Fri, 22 May 2020 19:51:15 +0000 (21:51 +0200)]
Cleanup: silence deprecation warnings of Carbon Finder Favorites items

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

2 months agoFix T76925: Cycles OpenCL compile error with some drivers on Linux
Brecht Van Lommel [Fri, 22 May 2020 17:02:49 +0000 (19:02 +0200)]
Fix T76925: Cycles OpenCL compile error with some drivers on Linux

2 months agoCleanup: Deduplicate code
Germano Cavalcante [Fri, 22 May 2020 17:58:56 +0000 (14:58 -0300)]
Cleanup: Deduplicate code

2 months agoFix redo with local orientation
Germano Cavalcante [Fri, 22 May 2020 17:43:38 +0000 (14:43 -0300)]
Fix redo with local orientation

2 months agoFix unused parameter `ftext`
Germano Cavalcante [Fri, 22 May 2020 17:05:51 +0000 (14:05 -0300)]
Fix unused parameter `ftext`

2 months agoFix T76940: Empty HUD (Redo Panel)
Julian Eisel [Fri, 22 May 2020 16:33:23 +0000 (18:33 +0200)]
Fix T76940: Empty HUD (Redo Panel)

If the redo panel was made visible with the same size it had before
(e.g. stored in the file), the runtime region coordinates wouldn't get
set and ended up being all 0. E.g. the simplest way to cause this was
having a collapsed HUD, saving the file, re-opening it with the same
effective DPI and doing an operation so the closed HUD would appear
again.

Now the size is always recalculated if the visibility state of the HUD
changes.

2 months agoMerge branch 'blender-v2.83-release'
Philipp Oeser [Fri, 22 May 2020 15:48:10 +0000 (17:48 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T74443: No render in VP9 lossless mode
Philipp Oeser [Wed, 20 May 2020 12:08:48 +0000 (14:08 +0200)]
Fix T74443: No render in VP9 lossless mode

We define Lossless as CRF 0 (which is usually the best quality and is
working fine with other codecs afaict), but since WebM only allows for
CRF values between 2-32 and actually has a dedicated "lossless" mode, I
suggest using that (it produces large files though, so double-checking
would be welcome).

https://trac.ffmpeg.org/wiki/Encode/VP9#LosslessVP9

Maniphest Tasks: T74443

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

2 months agoFix T76974: Shear Tool Misses Orientation
Germano Cavalcante [Fri, 22 May 2020 15:39:23 +0000 (12:39 -0300)]
Fix T76974: Shear Tool Misses Orientation

2 months agoTransform: refactoring - unify constraint and default orientation
Germano Cavalcante [Fri, 22 May 2020 15:34:29 +0000 (12:34 -0300)]
Transform: refactoring - unify constraint and default orientation

2 months agoMerge branch 'blender-v2.83-release'
Philipp Oeser [Fri, 22 May 2020 15:21:52 +0000 (17:21 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76960: fluid baking operators not working with pinned object
Philipp Oeser [Fri, 22 May 2020 11:43:53 +0000 (13:43 +0200)]
Fix T76960: fluid baking operators not working with pinned object

Maniphest Tasks: T76960

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

2 months agoRNA: Make enum properties compatible with raw access.
Bastien Montagne [Fri, 22 May 2020 13:12:46 +0000 (15:12 +0200)]
RNA: Make enum properties compatible with raw access.

This will allow to use foreach_get/set on enums of RNA collection items,
which can save a lot of time in some cases (see incoming FBX updates).

2 months agoFix T73115: In Front Drawing Bone Envelope Distance
Jeroen Bakker [Fri, 22 May 2020 13:09:01 +0000 (15:09 +0200)]
Fix T73115: In Front Drawing Bone Envelope Distance

The in front drawing was not supported for transparent part of the   armature. This patch adds a second transparent pass for drawing in
front.

Reviewed By: Clément Foucault

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

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Fri, 22 May 2020 12:42:16 +0000 (22:42 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Fri, 22 May 2020 12:20:01 +0000 (22:20 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoUV: remove "UV Local View" for UV editing
Campbell Barton [Fri, 22 May 2020 11:56:04 +0000 (21:56 +1000)]
UV: remove "UV Local View" for UV editing

This feature was added when Blender used tex-face (per-face images),
but doesn't make as much sense since this was removed.

Removing this from UV edit-mode as this wasn't working in any
of the 2.8x releases, causing UV's to be visible but unselectable.

Resolves issue raised in T76958.

2 months agoFix T73726: Workbench Closest Interpolation Artifacts
Jeroen Bakker [Fri, 22 May 2020 12:11:03 +0000 (14:11 +0200)]
Fix T73726: Workbench Closest Interpolation Artifacts

All textures in workbench are using linear interpolation. The fragment
shader modifies the uv coordinates to sample always in the center of a
texel. In rare conditions the GPU could sample an incorrect value due to
rounding errors making some rendering artifacts.

This patch skips the interpolation in the fragment shader to remove
these render artifacts.

Reviewed By: Clément Foucault

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

2 months agoRevert "UI: Remove duplicate Mark/Clear Seam entries from Edge menus"
Pablo Vazquez [Fri, 22 May 2020 11:41:48 +0000 (13:41 +0200)]
Revert "UI: Remove duplicate Mark/Clear Seam entries from Edge menus"

Seams are widely used outside UV context so it's okay to duplicate entries.
Based on community feedback, thanks!

This reverts commit fc62a3366c3264466b57e0d19b8d2970a1ad1a60.

2 months agoMerge branch 'blender-v2.83-release'
Richard Antalik [Fri, 22 May 2020 11:36:23 +0000 (13:36 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix (unreported): prefetching wastes resources when end frame is reached
Richard Antalik [Fri, 22 May 2020 11:31:49 +0000 (13:31 +0200)]
Fix (unreported): prefetching wastes resources when end frame is reached

This bug is not really visible for user. When end frame is reached by
prefetching thread, it doesn't stop and keeps on getting images from
cache.

Add chech for this situation and simplify logic involved in suspending,
so it's easier to read.

Reviewed By: brecht

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

2 months agoFix (unreported): Don't restart prefetching during rendering.
Richard Antalik [Fri, 22 May 2020 11:05:08 +0000 (13:05 +0200)]
Fix (unreported): Don't restart prefetching during rendering.

Prefetching is stopped in BKE_sequencer_cache_cleanup, but is restarted quickly.

Prefetching has negative effect on performance while rendering.

Reviewed By: brecht

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

2 months agoFix T76774: Crash on prefetching sequences from another scene.
Richard Antalik [Fri, 22 May 2020 10:59:26 +0000 (12:59 +0200)]
Fix T76774: Crash on prefetching sequences from another scene.

When rendering another scene, caching in disabled by setting
local_context.skip_cache = true. Precondition checking for this flag was
missing in BKE_sequencer_cache_get and it wasn't first thing to check in
BKE_sequencer_cache_put.

Reviewed By: brecht

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

2 months agoCleanup: only use nullptr in USD exporter
Sybren A. Stüvel [Fri, 22 May 2020 08:12:13 +0000 (10:12 +0200)]
Cleanup: only use nullptr in USD exporter

This removes all use of `NULL` from the USD Exporter, also when calling
into C code.

No functional changes.

2 months agoWayland: support key repeat
Christian Rauch [Fri, 22 May 2020 08:09:17 +0000 (18:09 +1000)]
Wayland: support key repeat

2 months agoGHOST: fix GHOST_System::getMilliSeconds()
Christian Rauch [Fri, 22 May 2020 08:06:13 +0000 (18:06 +1000)]
GHOST: fix GHOST_System::getMilliSeconds()

This wasn't returning milliseconds, causing problems with key repeat.

2 months agoFix missing header building with wayland
Campbell Barton [Fri, 22 May 2020 06:47:59 +0000 (16:47 +1000)]
Fix missing header building with wayland

2 months agoFix T64277: Inverted Wheelmouse
Jeroen Bakker [Fri, 22 May 2020 05:29:53 +0000 (07:29 +0200)]
Fix T64277: Inverted Wheelmouse

When using CTRL wheel mouse the items were selected in a different order than when opening the menu and use the wheel mouse.

Reviewed By: Brecht van Lommel

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

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Fri, 22 May 2020 02:40:02 +0000 (12:40 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix Python console cursor height
Campbell Barton [Fri, 22 May 2020 02:36:39 +0000 (12:36 +1000)]
Fix Python console cursor height

2 months agoFix T76949: Crash When Selecting Materials Tab.
Bastien Montagne [Thu, 21 May 2020 21:20:29 +0000 (23:20 +0200)]
Fix T76949: Crash When Selecting Materials Tab.

Dummy typo in own recent libquery refactor, of course that one missed
change was on a line not covered by our tests or the production file
used for validation...

2 months agolibquery: Cleanup: finish refactor by removing no more used code.
Bastien Montagne [Thu, 21 May 2020 17:37:57 +0000 (19:37 +0200)]
libquery: Cleanup: finish refactor by removing no more used code.

2 months agoLibquery refactor: Cleanup (remove no more used macros).
Bastien Montagne [Thu, 21 May 2020 17:36:05 +0000 (19:36 +0200)]
Libquery refactor: Cleanup (remove no more used macros).

2 months agoRefactor: Move scene foreach_id to new IDTypeInfo structure.
Bastien Montagne [Thu, 21 May 2020 17:29:55 +0000 (19:29 +0200)]
Refactor: Move scene foreach_id to new IDTypeInfo structure.

2 months agoRefactor: Move object foreach_id to new IDTypeInfo structure.
Bastien Montagne [Thu, 21 May 2020 17:09:48 +0000 (19:09 +0200)]
Refactor: Move object foreach_id to new IDTypeInfo structure.

2 months agoRefactor: Move NOP idtypes foreach_id to new IDTypeInfo structure.
Bastien Montagne [Thu, 21 May 2020 16:35:11 +0000 (18:35 +0200)]
Refactor: Move NOP idtypes foreach_id to new IDTypeInfo structure.

2 months agoUI: Fix T76918: 3D Mouse Inconsistent / Inaccessible UI
Hans Goudey [Thu, 21 May 2020 15:42:23 +0000 (11:42 -0400)]
UI: Fix T76918: 3D Mouse Inconsistent / Inaccessible UI

This consolidates the UI code for NDOF input settings, making all
settings accessible from the preferences. This works around an issue
where the Space Navigator's "Menu" button doesn't trigger the settings
menu in Blender.

I also took the opportunity to redo the UI layout.

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

2 months agoGPencil: Cleanup macro
Antonio Vazquez [Thu, 21 May 2020 14:24:31 +0000 (16:24 +0200)]
GPencil: Cleanup macro

2 months agoFix T76935: Current orientation not taken in account when using "Align to transform...
Germano Cavalcante [Thu, 21 May 2020 13:57:35 +0000 (10:57 -0300)]
Fix T76935: Current orientation not taken in account when using "Align to transform orientation"

2 months agoFix T76933: 'Align to Transform Orientation' crashes for Custom orientations
Germano Cavalcante [Thu, 21 May 2020 13:02:11 +0000 (10:02 -0300)]
Fix T76933: 'Align to Transform Orientation' crashes for Custom orientations

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Thu, 21 May 2020 13:07:18 +0000 (23:07 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoDocs: note that the color-ramp uses image alpha
Campbell Barton [Thu, 21 May 2020 13:03:24 +0000 (23:03 +1000)]
Docs: note that the color-ramp uses image alpha

Avoid misunderstanding from T59110

2 months agoBLI: improve Vector test
Jacques Lucke [Thu, 21 May 2020 12:35:19 +0000 (14:35 +0200)]
BLI: improve Vector test

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Thu, 21 May 2020 09:34:41 +0000 (19:34 +1000)]
Merge branch 'blender-v2.83-release'