blender-staging.git
2 months agoCMake: add WITH_LINKER_LLD option for unix platforms master
Nathan Craddock [Mon, 27 Apr 2020 04:10:56 +0000 (14:10 +1000)]
CMake: add WITH_LINKER_LLD option for unix platforms

Can give considerably faster linking, especially for debug builds.

This may be enabled by default but needs to be more thoroughly tested.

2 months agoMerge branch 'blender-v2.83-release'
Richard Antalik [Sun, 26 Apr 2020 22:57:17 +0000 (00:57 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T74346 VSE: Prefetching doesn't work properly with property animations
Richard Antalik [Sun, 26 Apr 2020 22:34:10 +0000 (00:34 +0200)]
Fix T74346 VSE: Prefetching doesn't work properly with property animations

Make sure depsgraph was updated before evaluating the animation.

Reviewed By: ISS

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

2 months agoVSE: Remove decorate from Expand and Mute in Modifiers
Peter Fog [Sun, 26 Apr 2020 22:12:35 +0000 (00:12 +0200)]
VSE: Remove decorate from Expand and Mute in Modifiers

Remove decorate from Expand and Mute in VSE Modifiers,
since these elements aren't using decorate elsewhere.

Reviewed By: billreynish

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

2 months agoMerge branch 'blender-v2.83-release'
Richard Antalik [Sun, 26 Apr 2020 22:06:00 +0000 (00:06 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T74603: Tweaking offsets causes strips to "reverse"
Richard Antalik [Sun, 26 Apr 2020 22:04:23 +0000 (00:04 +0200)]
Fix T74603: Tweaking offsets causes strips to "reverse"

Add range function to RNA properties.

Reviewed By: brecht

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

2 months agoMerge branch 'blender-v2.83-release'
Richard Antalik [Sun, 26 Apr 2020 21:44:12 +0000 (23:44 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T75495: Blender crashes opening a VSE .blend file
Richard Antalik [Sun, 26 Apr 2020 21:35:56 +0000 (23:35 +0200)]
Fix T75495: Blender crashes opening a VSE .blend file

During scene copy modifier mask strips are relinked to point to strips in
new scene. If strip used as mask is in different seqbase, this can fail,
if seqbase is not copied yet.

Add SEQ_DUPE_IS_RECURSIVE_CALL flag to avoid relinking modifiers during recursive call.

Reviewed By: brecht

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

2 months agoFix utterly wrong decorator button logic
Julian Eisel [Sun, 26 Apr 2020 14:02:18 +0000 (16:02 +0200)]
Fix utterly wrong decorator button logic

This was in fact completely messed up, but it worked by accident for all
current cases. That is, we always inserted the decorator buttons
immediately after the button they applied to. So the first button
comparision in ui_but_anim_decorate_find_attached_button() would
succeed, because it just compared a few values that all happened to be
NULL and thus the comparison returned true.

Further, avoid NULL-pointer dereferences and incorrect printing.

2 months agoMerge branch 'blender-v2.83-release'
Clément Foucault [Sun, 26 Apr 2020 10:26:26 +0000 (12:26 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoGPU: Add better support for texture copy fallback
Clément Foucault [Sun, 26 Apr 2020 10:25:32 +0000 (12:25 +0200)]
GPU: Add better support for texture copy fallback

Depth texture copy using glCopyTexSubImage2D is undefined behavior since
you cannot bind GL_DEPTH_ATTACHMENT to glReadBuffer.

Using glBlitFramebuffer as a fallback.

2 months agoMerge branch 'blender-v2.83-release'
Antonio Vazquez [Sat, 25 Apr 2020 17:42:52 +0000 (19:42 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoGPencil: Fix unreported small offset when use Stroke mode
Antonio Vazquez [Sat, 25 Apr 2020 17:40:12 +0000 (19:40 +0200)]
GPencil: Fix unreported small offset when use Stroke mode

When using the Stroke mode, the reprojection function add a small offset of 0.5 to +X and +Y. Now this effect is removed subtracting this value before doing the conversion.

2 months agoGPencil: Fix unreported jagged lines when using Stroke mode
Antonio Vazquez [Sat, 25 Apr 2020 17:37:06 +0000 (19:37 +0200)]
GPencil: Fix unreported jagged lines when using Stroke mode

When use the Stroke reproject mode, the precission of the conversion makes the line produce a very small noise effect.

Now, if the stroke mode is enabled, a small smooth is done using a factor depending of the input samples.

The values of the smooth effect were provided by @pepeland after several testing.

2 months agoMerge branch 'blender-v2.83-release'
Antonio Vazquez [Sat, 25 Apr 2020 08:41:44 +0000 (10:41 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76078: GPencil: frames interpolation erase strokes
Antonio Vazquez [Sat, 25 Apr 2020 08:40:09 +0000 (10:40 +0200)]
Fix T76078: GPencil: frames interpolation erase strokes

In some situations the stroke could be tagged and this tag was used to delete the interpolated strokes.

Now, the frames used as interpolated range are untagged before creating the interpolated strokes.

2 months agoMerge branch 'blender-v2.83-release'
Nathan Craddock [Sat, 25 Apr 2020 02:53:34 +0000 (20:53 -0600)]
Merge branch 'blender-v2.83-release'

2 months agoCleanup: Select sync from outliner
Nathan Craddock [Sat, 25 Apr 2020 02:22:46 +0000 (20:22 -0600)]
Cleanup: Select sync from outliner

Move the condition to check if selection syncing is enabled to inside
the syncing function rather than before each time it is called.

2 months agoFix: Selection syncing for outliner operators
Nathan Craddock [Sat, 25 Apr 2020 02:18:39 +0000 (20:18 -0600)]
Fix: Selection syncing for outliner operators

A few outliner operators that modify selection were not tagging for a
selection sync which led to selection inconsistencies. This adds syncing
for the following operators:
* Duplicating and deleting collections
* Selecting/deselecting collection contents
* Drag and drop
* Object select, deselect, delete, and delete hierarchy

2 months agoBLI: add LinearAllocator
Jacques Lucke [Fri, 24 Apr 2020 21:52:55 +0000 (23:52 +0200)]
BLI: add LinearAllocator

This allocator is useful when it is necessary to allocate many small elements.

2 months agoBLI: improve StringRef.copy
Jacques Lucke [Fri, 24 Apr 2020 21:35:17 +0000 (23:35 +0200)]
BLI: improve StringRef.copy

2 months agoBLI: add DefaultHash specializations for StringRef and StringRefNull
Jacques Lucke [Fri, 24 Apr 2020 21:14:33 +0000 (23:14 +0200)]
BLI: add DefaultHash specializations for StringRef and StringRefNull

2 months agoBLI: Implement StringMap.add and StringMap.add_or_modify
Jacques Lucke [Fri, 24 Apr 2020 20:33:48 +0000 (22:33 +0200)]
BLI: Implement StringMap.add and StringMap.add_or_modify

2 months agoUI: Move Scene Statistics to the 3D Viewport
Harley Acheson [Fri, 24 Apr 2020 18:05:40 +0000 (11:05 -0700)]
UI: Move Scene Statistics to the 3D Viewport

Removes statistics from footer and to an (optional) overlay in 3DView.

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

Reviewed by Campbell Barton

2 months agoFix T69753 Instanced Metaballs not rendering but showing up in Viewport
Sybren A. Stüvel [Fri, 24 Apr 2020 15:23:44 +0000 (17:23 +0200)]
Fix T69753 Instanced Metaballs not rendering but showing up in Viewport

This hides the original metaballs when they are used in
duplifaces/-verts instancing, and still shows the instanced metaballs.

The visibility of the original metaballs is now determined by the
visibility of the instancer. I'm not too thrilled about this, but at
least it gives users the ability to show/hide the metaballs for
viewport/render.

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

2 months agoTests: use explicit Python to run unit tests
Sybren A. Stüvel [Fri, 10 Apr 2020 08:35:17 +0000 (10:35 +0200)]
Tests: use explicit Python to run unit tests

CentOS on the buildbot still runs Python 3.6, which is also used for the
unit tests. This means that the tests can't use language features that
are available to Blender itself. And testing with a different version of
Python than will be used by the actual code seems like a bad idea to me.

This commit adds `TEST_PYTHON_EXECUTABLE` as advanced CMake option. This
will allow us to set a specific Python executable when we need it. When
not set, a platform-specific default will be used:

- On Windows, the `python….exe` from the installation directory. This is
  just like before this patch, except that this patch adds the
  overridability.
- On macOS/Linux, the `${PYTHON_EXECUTABLE}` as found by CMake.

Every platform should now have a value (configured by the user or
detected by CMake) for `TEST_PYTHON_EXE`, so there is no need to allow
running without. This also removes the need to have some Python files
marked as executable.

If `TEST_PYTHON_EXE` is not user-configured, and thus the above default
is used, a status message is logged by CMake. I've seen this a lot in
other projects, and I like that it shows which values are auto-detected.
However, it's not common in Blender, so if we want we can either remove
it now, or remove it after the buildbot has been set up correctly.

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

Reviewed by: campbellbarton, mont29, sergey

2 months agoDefaults: Change default axes for Track To constraint
Julian Eisel [Fri, 24 Apr 2020 14:12:09 +0000 (16:12 +0200)]
Defaults: Change default axes for Track To constraint

The main use-case for the Track To constraint is camera tracking, so
this sets up a better default for this. That is, track to -Z with Y up.

Agreed on internally with Pablo Vazquez and William Reynish. Should
there be a reason to revert this, that would be fine compatibility-wise.

2 months agoDefaults: Reduce near-clipping in factory settings
Julian Eisel [Fri, 24 Apr 2020 13:19:54 +0000 (15:19 +0200)]
Defaults: Reduce near-clipping in factory settings

For newly opened 3D Views, the default would actually be 0.01m. But the
code to update the default for all existing 3D Views in the
startup.blend was missing. So the defaults were out-of-sync.

0.01m is the more reasonable default as agreed on by the UI team.

2 months agoDepsgraph: Use BLI::Map instead of GHash for operations_map
Jacques Lucke [Fri, 24 Apr 2020 09:34:04 +0000 (11:34 +0200)]
Depsgraph: Use BLI::Map instead of GHash for operations_map

Reviewers: sergey

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

2 months agoDepsgraph: Use BLI::Set instead of std::unordered_set
Jacques Lucke [Fri, 24 Apr 2020 08:48:25 +0000 (10:48 +0200)]
Depsgraph: Use BLI::Set instead of std::unordered_set

Reviewers: sergey

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

2 months agoMerge branch 'blender-v2.83-release'
Sergey Sharybin [Fri, 24 Apr 2020 08:40:42 +0000 (10:40 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoT75631: New multires shrinkage problem
Sergey Sharybin [Thu, 23 Apr 2020 16:20:18 +0000 (18:20 +0200)]
T75631: New multires shrinkage problem

The old Subdivide button was behaving as if subdivision modifier was
applied on top of the multires. This was the source of shrinkage since
the behavior of the limit surface: limit surface of a sparse point
from another limit surface makes final result appear smaller.

The new behavior is based on propagating delta against base mesh's
limit surface to the top level. Effectively, this is as if we've
sculpted on old top level and then propagated to the new top level.

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

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Fri, 24 Apr 2020 08:14:18 +0000 (18:14 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix T75749: UI button text selecting is broken by text offset
Campbell Barton [Fri, 24 Apr 2020 08:13:43 +0000 (18:13 +1000)]
Fix T75749: UI button text selecting is broken by text offset

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Fri, 24 Apr 2020 07:41:34 +0000 (17:41 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix edit-mesh selection mode switching causing two undo pushes
Campbell Barton [Fri, 24 Apr 2020 07:39:11 +0000 (17:39 +1000)]
Fix edit-mesh selection mode switching causing two undo pushes

2 months agoFix edit-mesh moving from edge to face mode with Ctrl held
Campbell Barton [Fri, 24 Apr 2020 07:28:46 +0000 (17:28 +1000)]
Fix edit-mesh moving from edge to face mode with Ctrl held

Faces could be selected without any of their edges or vertices selected.

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Fri, 24 Apr 2020 07:07:23 +0000 (17:07 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoUI: add mesh skin-resize to menu
Campbell Barton [Fri, 24 Apr 2020 07:06:37 +0000 (17:06 +1000)]
UI: add mesh skin-resize to menu

Resolves T75925

2 months agoCleanup: declare values for enum types
Campbell Barton [Fri, 24 Apr 2020 05:49:25 +0000 (15:49 +1000)]
Cleanup: declare values for enum types

Avoids accidents when adding/removing items from an enum.

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Fri, 24 Apr 2020 03:28:11 +0000 (13:28 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix T75946: Intersect (knife) doesn't cut all intersections
Campbell Barton [Fri, 24 Apr 2020 03:26:17 +0000 (13:26 +1000)]
Fix T75946: Intersect (knife) doesn't cut all intersections

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

2 months agoFix T63787: Knife intersect crashes
Campbell Barton [Fri, 24 Apr 2020 02:03:40 +0000 (12:03 +1000)]
Fix T63787: Knife intersect crashes

2 months agoCleanup: correct printf warnings for bmesh interesect debugging
Campbell Barton [Fri, 24 Apr 2020 01:47:41 +0000 (11:47 +1000)]
Cleanup: correct printf warnings for bmesh interesect debugging

2 months agoCleanup: remove unused arg, clang-format
Campbell Barton [Fri, 24 Apr 2020 01:43:30 +0000 (11:43 +1000)]
Cleanup: remove unused arg, clang-format

2 months agoMerge branch 'blender-v2.83-release'
Clément Foucault [Thu, 23 Apr 2020 21:08:20 +0000 (23:08 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoGPU: Add Polyline shader (wide line emulation)
Clément Foucault [Thu, 23 Apr 2020 21:05:39 +0000 (23:05 +0200)]
GPU: Add Polyline shader (wide line emulation)

This new shader is able to emulate smooth wide lines drawing using a
geometry shader.

This shader needs viewportSize and lineWidth uniforms to be set.

There is multiple variants to replace the usage of wide lines for most
shaders.

This patch only fix the gizmo_types files and the navigation gizmo.
Other areas could be fixed afterward, I just limited the patch size.

Fix T57570.

Reviewed By: billreynish

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

2 months agoFix T73741 Grid Floor render on top of Wireframe objects
Clément Foucault [Thu, 23 Apr 2020 20:21:22 +0000 (22:21 +0200)]
Fix T73741 Grid Floor render on top of Wireframe objects

Go for a bias towards background to avoid loosing wireframe objects.

2 months agoFix T74173 Assert when scaling camera in viewport to zero
Clément Foucault [Thu, 23 Apr 2020 19:32:21 +0000 (21:32 +0200)]
Fix T74173 Assert when scaling camera in viewport to zero

2 months agoCleanup: silence unused parameter warning
Jacques Lucke [Thu, 23 Apr 2020 18:49:42 +0000 (20:49 +0200)]
Cleanup: silence unused parameter warning

2 months agoBLI: various data structure improvements
Jacques Lucke [Thu, 23 Apr 2020 18:05:53 +0000 (20:05 +0200)]
BLI: various data structure improvements

* Rename template parameter N to InlineBufferCapacity
* Expose InlineBufferCapacity parameter for Set and Map
* Add some comments
* Fixed an error that I introduced recently

2 months agoMerge branch 'blender-v2.83-release'
Philipp Oeser [Thu, 23 Apr 2020 16:26:22 +0000 (18:26 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76014: correct description of COLLECTION_OT_objects_remove_all
Philipp Oeser [Thu, 23 Apr 2020 08:43:16 +0000 (10:43 +0200)]
Fix T76014: correct description of COLLECTION_OT_objects_remove_all

before rB17bd5c9d4b1e it was "Remove selected objects from all groups"

- `BKE_object_groups_clear` is not checking if a collection is linked
to the current scene...
- rB713010bd7795 did not change that either

So this indeed removes selection from _all_ collections, so account for
that in the operator description/idname.

Reviewers: brecht

https://developer.blender.org/D7500

2 months agoFix T73195: stereo camera view does not show background image
Brecht Van Lommel [Thu, 23 Apr 2020 16:01:04 +0000 (18:01 +0200)]
Fix T73195: stereo camera view does not show background image

2 months agoFix T72506 EEVEE: Collection Holdout propagates accross material instances
Clément Foucault [Thu, 23 Apr 2020 15:40:22 +0000 (17:40 +0200)]
Fix T72506 EEVEE: Collection Holdout propagates accross material instances

This fix the issue by introducing a default material only for collection
holdouts. This avoids hash colision when the same material is used in
collections without holdout enabled.

2 months agoFix T75607: crash trying to sculpt while remesh is in progress
Brecht Van Lommel [Thu, 23 Apr 2020 15:09:29 +0000 (17:09 +0200)]
Fix T75607: crash trying to sculpt while remesh is in progress

The interface is already locked, but the paint brush drawing could stll be
reading the mesh that was being edited in another thread.

2 months agoCleanup: Add assert to crash earlier
Jacques Lucke [Thu, 23 Apr 2020 13:45:08 +0000 (15:45 +0200)]
Cleanup: Add assert to crash earlier

This makes T75096 crash earlier.

2 months agoMerge branch 'blender-v2.83-release'
Brecht Van Lommel [Thu, 23 Apr 2020 13:45:46 +0000 (15:45 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T75611: slow transform of many objects at the same time
Brecht Van Lommel [Thu, 23 Apr 2020 13:05:06 +0000 (15:05 +0200)]
Fix T75611: slow transform of many objects at the same time

Solve O(n^2) time complexity problem where a dependency graph iterator loops
over all nodes to clear flags, which happened for every object at the start
of transform.

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

2 months agoBLI: remove TaskParallelRangePool
Brecht Van Lommel [Thu, 23 Apr 2020 13:15:05 +0000 (15:15 +0200)]
BLI: remove TaskParallelRangePool

This is not currently used and will take some work to support with TBB, so
remove it until we have a new implementation based on TBB.

Fixes T76005, parallel range pool tests failing.

Ref D7475

2 months agoMerge branch 'blender-v2.83-release'
Jacques Lucke [Thu, 23 Apr 2020 13:15:04 +0000 (15:15 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T73680: Scene and fluid modifier gravity are scaled differently
Jacques Lucke [Thu, 23 Apr 2020 13:10:20 +0000 (15:10 +0200)]
Fix T73680: Scene and fluid modifier gravity are scaled differently

Reviewers: sebbas

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

2 months agoFix T76008: Fluid inflow with negative initial velocity is not working
Jacques Lucke [Thu, 23 Apr 2020 10:44:12 +0000 (12:44 +0200)]
Fix T76008: Fluid inflow with negative initial velocity is not working

This is a regression introduced in rBa0fe22095e6d9b8b194c2cf6f9a7c7b419d7e61c.

I changed it so that the velocity with the highest magnitude is considered and
not the highest value per coordinate.

Reviewers: sebbas

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

2 months agoFix T75987: crash entering edit mode with keyed particles
Brecht Van Lommel [Thu, 23 Apr 2020 12:51:07 +0000 (14:51 +0200)]
Fix T75987: crash entering edit mode with keyed particles

2 months agoMerge branch 'blender-v2.83-release'
Bastien Montagne [Thu, 23 Apr 2020 12:49:38 +0000 (14:49 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoArray modifier: limit maximum amount of generated geometry.
Bastien Montagne [Thu, 23 Apr 2020 12:47:06 +0000 (14:47 +0200)]
Array modifier: limit maximum amount of generated geometry.

Fixes T75278: Crash when modifier "Array-Fit Curve-Relative Offset"
nears zero.

2 months agoMade pose push/relax to breakdown behave smooth on rotations
Sebastian Parborg [Thu, 23 Apr 2020 12:11:15 +0000 (14:11 +0200)]
Made pose push/relax to breakdown behave smooth on rotations

A follow up to T67212. I missed that the rotation interpolation had its
own code path.

The previous rotation push code was actually wrong (but smooth).

Now all of the actions behave correctly and is smoothly interpolated.

2 months agoFix T76005: BLI_task test failing after recent changes
Brecht Van Lommel [Thu, 23 Apr 2020 11:59:55 +0000 (13:59 +0200)]
Fix T76005: BLI_task test failing after recent changes

This was an error in changes made to this test to accomodate the new reduce
callback.

2 months agoFix headless build failure on macOS
Brecht Van Lommel [Thu, 23 Apr 2020 11:19:54 +0000 (13:19 +0200)]
Fix headless build failure on macOS

2 months agoBLI: optimize VectorSet implementation
Jacques Lucke [Thu, 23 Apr 2020 09:57:58 +0000 (11:57 +0200)]
BLI: optimize VectorSet implementation

Instead of building on top of `BLI::Vector`, just use a raw array
and handle the growing in `BLI::VectorSet`.

After this change, the existing `EdgeSet` can be reimplemented using
`BLI::VectorSet` without performance regressions.

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Thu, 23 Apr 2020 08:38:41 +0000 (18:38 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix T75836: Light target misses updates while dragging
Campbell Barton [Thu, 23 Apr 2020 08:25:29 +0000 (18:25 +1000)]
Fix T75836: Light target misses updates while dragging

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Thu, 23 Apr 2020 06:15:55 +0000 (16:15 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix T74172: Mirror with bisect results in holes
Campbell Barton [Thu, 23 Apr 2020 06:14:07 +0000 (16:14 +1000)]
Fix T74172: Mirror with bisect results in holes

Enable snap-to-center when bisecting.

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Thu, 23 Apr 2020 05:09:54 +0000 (15:09 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix T75965: Scale to Fit Text Box fails with a single word
Campbell Barton [Thu, 23 Apr 2020 05:03:47 +0000 (15:03 +1000)]
Fix T75965: Scale to Fit Text Box fails with a single word

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Thu, 23 Apr 2020 02:12:34 +0000 (12:12 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoCleanup: clang-format, unused warning
Campbell Barton [Thu, 23 Apr 2020 02:10:41 +0000 (12:10 +1000)]
Cleanup: clang-format, unused warning

2 months agoCleanup: add explicit enum values in DNA_rigidbody_types.h
Campbell Barton [Thu, 23 Apr 2020 02:06:05 +0000 (12:06 +1000)]
Cleanup: add explicit enum values in DNA_rigidbody_types.h

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Thu, 23 Apr 2020 02:02:25 +0000 (12:02 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix invalid rigid body constraint values during 2.83 development
Campbell Barton [Thu, 23 Apr 2020 01:46:52 +0000 (11:46 +1000)]
Fix invalid rigid body constraint values during 2.83 development

Own error in cleanup from 5dcb6fb22f3f unintentionally
changed enum values. Although this code violated our own
rules to use explicit values to avoid this happening.

2 months agoFix T75991: crash when rigidbody encounters unknown constraint type
Campbell Barton [Thu, 23 Apr 2020 01:28:32 +0000 (11:28 +1000)]
Fix T75991: crash when rigidbody encounters unknown constraint type

This just adds a check to prevent the crash,
Versioning invalid types still needed.

2 months agoMerge branch 'blender-v2.83-release'
Clément Foucault [Wed, 22 Apr 2020 19:42:09 +0000 (21:42 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoWorkbench: Use GPU_texture_copy instead of GPU_framebuffer_blit for TAA
Clément Foucault [Wed, 22 Apr 2020 19:27:07 +0000 (21:27 +0200)]
Workbench: Use GPU_texture_copy instead of GPU_framebuffer_blit for TAA

This fixes T75477 which seems to be a driver but caused by framebuffer
blitting.

2 months agoGPU: Add GPU_texture_copy
Clément Foucault [Wed, 22 Apr 2020 19:22:07 +0000 (21:22 +0200)]
GPU: Add GPU_texture_copy

This allow to copy entire texture in a faster way than using framebuffer
blitting.

This uses ARB_copy_image extension if available and fallback to
glCopyTexSubImage2D for older gl version.

Both method should be as fast if not faster than the framebuffer blitting.

2 months agoMerge branch 'blender-v2.83-release'
Brecht Van Lommel [Wed, 22 Apr 2020 19:04:58 +0000 (21:04 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoUI: Always check if IME Supported After Changing Language
Harley Acheson [Wed, 22 Apr 2020 18:27:29 +0000 (11:27 -0700)]
UI: Always check if IME Supported After Changing Language

Changing from IME-enabled language to English did not turn off IME.

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

Reviewed by Campbell Barton

2 months agoUI: Always check if IME Supported After Changing Language
Harley Acheson [Wed, 22 Apr 2020 18:27:29 +0000 (11:27 -0700)]
UI: Always check if IME Supported After Changing Language

Changing from IME-enabled language to English did not turn off IME.

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

Reviewed by Campbell Barton

2 months agoReset submodule to the right place in master
Dalai Felinto [Wed, 22 Apr 2020 18:20:03 +0000 (20:20 +0200)]
Reset submodule to the right place in master

Accidently changed on rB0dfe30502a02.

2 months agoMerge branch 'blender-v2.83-release'
Robert Guetzkow [Wed, 22 Apr 2020 17:20:11 +0000 (19:20 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T75938: Workbench normal direction for matcaps
Robert Guetzkow [Wed, 22 Apr 2020 17:08:00 +0000 (19:08 +0200)]
Fix T75938: Workbench normal direction for matcaps

Set useMatcap to ensure correct normal direction when using matcaps
in the workbench engine.

2 months agoFix T75994: Crash with 'Split Edges and Faces' | Auto-Merge
Germano Cavalcante [Wed, 22 Apr 2020 15:47:53 +0000 (12:47 -0300)]
Fix T75994: Crash with 'Split Edges and Faces' | Auto-Merge

It occurred when an edge was collapsed into a vert that was not part of it.
This is common when the distance for merging is relatively large.

2 months agoFix T75994: Crash with 'Split Edges and Faces' | Auto-Merge
Germano Cavalcante [Wed, 22 Apr 2020 15:47:53 +0000 (12:47 -0300)]
Fix T75994: Crash with 'Split Edges and Faces' | Auto-Merge

It occurred when an edge was collapsed into a vert that was not part of it.
This is common when the distance for merging is relatively large.

2 months agoMerge branch 'blender-v2.83-release'
Bastien Montagne [Wed, 22 Apr 2020 15:13:21 +0000 (17:13 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoSilence annoying error message in writefile on undo step storage.
Bastien Montagne [Wed, 22 Apr 2020 14:14:35 +0000 (16:14 +0200)]
Silence annoying error message in writefile on undo step storage.

Fix T75318: Error spam in console when opening file from 2.7x.

2 months agoMerge branch 'blender-v2.83-release'
Sebastián Barschkis [Wed, 22 Apr 2020 15:05:04 +0000 (17:05 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoCleanup: Fix strict compiler warning
Sergey Sharybin [Tue, 21 Apr 2020 10:49:12 +0000 (12:49 +0200)]
Cleanup: Fix strict compiler warning

2 months agoFix T74423: Cycles rendering artifacts with CUDA 10.2
Brecht Van Lommel [Wed, 22 Apr 2020 14:27:25 +0000 (16:27 +0200)]
Fix T74423: Cycles rendering artifacts with CUDA 10.2

Work around what appears to be a compiler bug, just changing the code a bit
without any functional changes.

2 months agoGPencil: Change Thickness Profile icon
Antonio Vazquez [Wed, 22 Apr 2020 14:39:44 +0000 (16:39 +0200)]
GPencil: Change Thickness Profile icon