blender.git
8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Mon, 18 Nov 2019 05:39:10 +0000 (16:39 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Mon, 18 Nov 2019 05:39:01 +0000 (16:39 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoCMake: GLEW_INCLUDE_PATH wasn't set for system glew
Campbell Barton [Mon, 18 Nov 2019 05:26:32 +0000 (16:26 +1100)]
CMake: GLEW_INCLUDE_PATH wasn't set for system glew

8 months agoFix building on 32bit systems
Campbell Barton [Mon, 18 Nov 2019 05:25:59 +0000 (16:25 +1100)]
Fix building on 32bit systems

8 months agomsvc: Use debug versions of tbb malloc for debug builds
Ray Molenkamp [Sun, 17 Nov 2019 21:26:29 +0000 (14:26 -0700)]
msvc: Use debug versions of tbb malloc for debug builds

Using the release versions gave unpredictable results when
the msvc debugger was attached for some developers.

8 months agoFix: Build error with msvc
Ray Molenkamp [Sun, 17 Nov 2019 16:09:58 +0000 (09:09 -0700)]
Fix: Build error with msvc

std::min requires the algorithm header

8 months agoFix T71322: Crash in Audaspace with some video file
Jörg Müller [Sun, 17 Nov 2019 08:02:18 +0000 (09:02 +0100)]
Fix T71322: Crash in Audaspace with some video file

Getting upstream audaspace fixes for audio files with more than 8
channels.

8 months agoFix a bug in the T34039 hack in case when a modifier key is not mapped.
Alexander Gavrilov [Sat, 16 Nov 2019 08:56:38 +0000 (11:56 +0300)]
Fix a bug in the T34039 hack in case when a modifier key is not mapped.

In order to recover from a transient Focus Out - Focus In disruption
in the middle of a shortcut, which can be caused by certain window
managers, Blender has code that checks which modifier keys are pressed
after Focus In and restores the modifier state based on that.

If one of the Ctrl, Shift, Alt, Super keys is not mapped anywhere
in the active keyboard layout, XKeysymToKeycode returns the invalid
zero keycode, and reading the key state produces garbage, which can
cause an invalid modifier state. Check the return value to avoid this.

8 months agoFix T68191: Make-instances-real doesn't select the new instances
Philipp Oeser [Tue, 12 Nov 2019 14:25:32 +0000 (15:25 +0100)]
Fix T68191: Make-instances-real doesn't select the new instances

2.79 also did this [select the new instances] which was useful.
2.79 also kept the instancer selected [this patch deselects]

Reviewed By: mont29

Maniphest Tasks: T68191

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

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Fri, 15 Nov 2019 16:34:19 +0000 (03:34 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoFix active bone flip not activating the wpaint vertex group
Campbell Barton [Fri, 15 Nov 2019 16:32:23 +0000 (03:32 +1100)]
Fix active bone flip not activating the wpaint vertex group

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Fri, 15 Nov 2019 15:49:45 +0000 (02:49 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoCleanup: quiet warnings
Campbell Barton [Fri, 15 Nov 2019 15:49:15 +0000 (02:49 +1100)]
Cleanup: quiet warnings

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Fri, 15 Nov 2019 15:42:33 +0000 (02:42 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Fri, 15 Nov 2019 15:42:27 +0000 (02:42 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Fri, 15 Nov 2019 15:42:19 +0000 (02:42 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Fri, 15 Nov 2019 15:42:07 +0000 (02:42 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoAPI Docs: don't show functions in 'bpy.app.handlers'
Campbell Barton [Fri, 15 Nov 2019 15:37:40 +0000 (02:37 +1100)]
API Docs: don't show functions in 'bpy.app.handlers'

This shows the function and it's memory location,
it's not useful for docs so remove it.

8 months agoAPI Docs: only document built-in types
Campbell Barton [Fri, 15 Nov 2019 15:12:20 +0000 (02:12 +1100)]
API Docs: only document built-in types

Some types were documented in bpy.types aren't accessible there.

For now, disable documenting types from add-ons and some types from
bl_operators, bl_ui... since these are mostly for internal use.

8 months agoPyAPI: add class and module attributes to rna_info.InfoStructRNA
Campbell Barton [Fri, 15 Nov 2019 15:06:20 +0000 (02:06 +1100)]
PyAPI: add class and module attributes to rna_info.InfoStructRNA

Module access is needed for documentation generation to exclude
non built-in modules.

This also fixes a bug creating references to non built-in types.

8 months agoDocs: correct indent for to_swing_twist docstring
Campbell Barton [Fri, 15 Nov 2019 14:30:07 +0000 (01:30 +1100)]
Docs: correct indent for to_swing_twist docstring

8 months agoMerge remote-tracking branch 'origin/blender-v2.81-release'
Dalai Felinto [Fri, 15 Nov 2019 15:10:55 +0000 (12:10 -0300)]
Merge remote-tracking branch 'origin/blender-v2.81-release'

8 months agoMerge branch 'blender-v2.81-release'
Julian Eisel [Fri, 15 Nov 2019 15:34:46 +0000 (16:34 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T70991: Maximized file browser hides file name bar on Windows
Julian Eisel [Fri, 15 Nov 2019 15:05:38 +0000 (16:05 +0100)]
Fix T70991: Maximized file browser hides file name bar on Windows

`WS_CHILD` is a different kind of child window that what we define as
child window. See http://forums.codeguru.com/showthread.php?491604.

Setting this style flag seems to mess things up a bit in our
configuration. The name bar is actually being overlapped by the Windows
task bar then. Not totally sure why this happens, but I think it's
because windows with the `WS_CHILD` style are positioned relative to the
parent, not the desktop (screen without taskbar). So it uses the full
space available when maximized, which isn't clipped by the taskbar
anymore.

8 months agoFix: Filebrowser saving dialog size when maximized
Dalai Felinto [Fri, 15 Nov 2019 13:05:02 +0000 (10:05 -0300)]
Fix: Filebrowser saving dialog size when maximized

Reviewed By: Severin

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

8 months agoFix crash when freeing Blender after GTests
Sybren A. Stüvel [Fri, 15 Nov 2019 14:13:06 +0000 (15:13 +0100)]
Fix crash when freeing Blender after GTests

This only frees brush_rng and random_tex_array when they were actually
previously allocated.

In a unit test (see D6246) I want to be able to partially start Blender
so that I can load a blend file. To prevent memory leaks, I also want to
be able to release memory, which currently requires calling
`BKE_blender_free()`. This unconditionally calls `RE_texture_rng_exit()`
and `BKE_brush_system_exit()`, which now crash on freeing `NULL`. This
patch fixes that.

Allocation (`BKE_brush_system_init()`) and freeing
(`BKE_brush_system_exit()`) are done asymmetrically. The allocation
functions are called from `main()` in the creator module, but the
freeing is done by `BKE_blender_free()` the Window Manager. Ideally we
symmetrise this and initialise Blender from outside the window manager
(so that the initialisation can be done without WM and Python too), but
for now I'm happy when things don't crash.

Reviewed by: sergey via pair programming

8 months agoKeymap: pressing leader key (Alt) again closes tool prompt
Campbell Barton [Fri, 15 Nov 2019 02:52:16 +0000 (13:52 +1100)]
Keymap: pressing leader key (Alt) again closes tool prompt

Provides a convenient way to close
if the tool prompt is opened by accident.

8 months agoCleanup: unused argument, variable warnings
Campbell Barton [Fri, 15 Nov 2019 03:35:46 +0000 (14:35 +1100)]
Cleanup: unused argument, variable warnings

8 months agoFix T71590: Closing file browser reopens previously closed render view
Julian Eisel [Thu, 14 Nov 2019 23:23:52 +0000 (00:23 +0100)]
Fix T71590: Closing file browser reopens previously closed render view

The render view window was never closed actually, just moved behind the
main window. It's properly closed now.

It should also behave more like expected when there already is a
temporary window open (e.g. Preferences).

8 months agoGPencil MultiStroke modifier
YimingWu [Thu, 14 Nov 2019 18:18:23 +0000 (19:18 +0100)]
GPencil MultiStroke modifier

This patch includes a modifiers that developed for NPR rendering.

- MultiStroke modifier that generates multiple strokes around the original ones.

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

8 months agoMerge branch 'blender-v2.81-release'
Sergey Sharybin [Thu, 14 Nov 2019 09:44:27 +0000 (10:44 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoBuildbot: Explicitly disable code signer on Linux and macOS
Sergey Sharybin [Thu, 14 Nov 2019 09:37:16 +0000 (10:37 +0100)]
Buildbot: Explicitly disable code signer on Linux and macOS

The script requires Python 3.7 as a very minimum, and CentOS is
only 3.6.

On macOC there was an access to a None object, due to missing
implementation of code signer on this platform.

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Thu, 14 Nov 2019 08:53:26 +0000 (19:53 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Thu, 14 Nov 2019 08:52:52 +0000 (19:52 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoSculpt: disable undo from any UI elements in sculpt mode
Campbell Barton [Thu, 14 Nov 2019 08:48:29 +0000 (19:48 +1100)]
Sculpt: disable undo from any UI elements in sculpt mode

Causes undo push in sculpt mode, see: T71434

8 months agoPaint: disable undo when changing the brush or it's size
Campbell Barton [Thu, 14 Nov 2019 08:48:08 +0000 (19:48 +1100)]
Paint: disable undo when changing the brush or it's size

Causes undo push in sculpt mode, see: T71434

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Thu, 14 Nov 2019 06:34:56 +0000 (17:34 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T70211: Brush keybindings failed with non-brush tool active
Campbell Barton [Thu, 14 Nov 2019 06:29:42 +0000 (17:29 +1100)]
Fix T70211: Brush keybindings failed with non-brush tool active

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Thu, 14 Nov 2019 05:58:49 +0000 (16:58 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoFix macOS using conflicting key binding Cmd-.
Campbell Barton [Thu, 14 Nov 2019 05:51:16 +0000 (16:51 +1100)]
Fix macOS using conflicting key binding Cmd-.

Used for toggle origins, conflicts on macOS, use Ctrl-. instead.

8 months agoMerge branch 'blender-v2.81-release'
Pablo Dobarro [Wed, 13 Nov 2019 16:27:18 +0000 (17:27 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoSculpt: Sculpt template defaults
Pablo Dobarro [Wed, 13 Nov 2019 16:21:17 +0000 (17:21 +0100)]
Sculpt: Sculpt template defaults

This commit includes all changes listed in T71366 except for the 2 column toolbar layout.

Reviewed By: brecht

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

8 months agoMerge branch 'blender-v2.81-release'
Sergey Sharybin [Wed, 13 Nov 2019 16:20:18 +0000 (17:20 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoForce sculpting on highest multires level
Sergey Sharybin [Wed, 13 Nov 2019 15:58:32 +0000 (16:58 +0100)]
Force sculpting on highest multires level

This is a workaround for T58473 to avoid likely event of ruining
sculpted data.

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

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Wed, 13 Nov 2019 13:59:44 +0000 (00:59 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71434: Sculpt lags changing brush size
Campbell Barton [Wed, 13 Nov 2019 13:37:51 +0000 (00:37 +1100)]
Fix T71434: Sculpt lags changing brush size

Add a check to wm.radial_control so undo steps are only added
to properties that have undo enabled (as is done with number buttons).

8 months agoCleanup: correct mul_v4_v4fl declaration
Jorge Bernal [Wed, 13 Nov 2019 13:07:35 +0000 (00:07 +1100)]
Cleanup: correct mul_v4_v4fl declaration

8 months agoCleanup: use int for operator return argument
Campbell Barton [Wed, 13 Nov 2019 13:06:48 +0000 (00:06 +1100)]
Cleanup: use int for operator return argument

8 months agoCycles: OpenCL Performance
Jeroen Bakker [Wed, 13 Nov 2019 07:03:44 +0000 (08:03 +0100)]
Cycles: OpenCL Performance

When using OpenCL with Cycles the rendering time increased substantial.
After doing some tests the bottleneck was found in 4d voronoi and 2d and
3d smooth voronoi.

This change will hide these behind a specific compile directive so the
speed will improve.

AMD RX480 + BMW scene

    2.80 (3:10)
    2.81 (5:48)
    2.81 excluding 4d voronoi+2d/3d smooth (3:50)

Reviewed By: sergey

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

8 months agoMerge branch 'blender-v2.81-release'
Sergey Sharybin [Wed, 13 Nov 2019 10:49:09 +0000 (11:49 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71503: Wrap + displace + multires + Sculpt crash
Sergey Sharybin [Wed, 13 Nov 2019 10:29:19 +0000 (11:29 +0100)]
Fix T71503: Wrap + displace + multires + Sculpt crash

The root of the issue goes to the discontinuity between the way how
mesh_calc_modifiers() and BKE_sculpt_multires_active() works.

At some point detection of original data usage by a modifier got
broken: the mesh_final based check is unreliable because deform-only
modifiers will create mesh_final for the connectivity information.

This made it so modifier stack evaluation would skip multires
evaluation, but the sculpt code will assume the multires is properly
applied.

This change makes it an explicit check about whether there are any
non-deform-only modifiers applied.

Pair programming and review together with Bastien, thanks!

8 months agoModifiers: Correct deform-only modifiers
Sergey Sharybin [Wed, 13 Nov 2019 10:24:16 +0000 (11:24 +0100)]
Modifiers: Correct deform-only modifiers

There was a discontinuity between how deform-only modifiers are applied
for the case when result deform mesh is requested and when it is not.

Namely, the input mesh will always be guaranteed to present in the
former case, but not in the latter.

This change makes it so input mesh to deform-only modifiers is always
at consistent state.

Pair programming and review together with Bastien, thanks!

8 months agoInitial implementation of code signing routines
Sergey Sharybin [Thu, 7 Nov 2019 15:50:31 +0000 (16:50 +0100)]
Initial implementation of code signing routines

This changes integrates code signing steps into a buildbot worker
process.

The configuration requires having a separate machine running with
a shared folder access between the signing machine and worker machine.

Actual signing is happening as a "POST-INSTALL" script run by CMake,
which allows to sign any binary which ends up in the final bundle.
Additionally, such way allows to avoid signing binaries in the build
folder (if we were signing as a built process, which iwas another
alternative).
Such complexity is needed on platforms which are using CPack to
generate final bundle: CPack runs INSTALL target into its own location,
so it is useless to run signing on a folder which is considered INSTALL
by the buildbot worker.

There is a signing script which can be used as a standalone tool,
making it possible to hook up signing for macOS's bundler.

There is a dummy Linux signer implementation, which can be activated
by returning True from mock_codesign in linux_code_signer.py.
Main purpose of this signer is to give an ability to develop the
scripts on Linux environment, without going to Windows VM.

The code is based on D6036 from Nathan Letwory.

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

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Wed, 13 Nov 2019 04:08:43 +0000 (15:08 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Wed, 13 Nov 2019 04:08:29 +0000 (15:08 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoAdd support for the TBB allocator on windows.
Ray Molenkamp [Wed, 13 Nov 2019 03:55:39 +0000 (20:55 -0700)]
Add support for the TBB allocator on windows.

The heap on windows is single threaded causing it to lag behind linux in performance in allocation heavy multithreaded scenarios, BVH building is a prime example.

See https://developer.blender.org/D6218 for benchmark results

for testing with the allocator enabled/disabled you can set the environment variable TBB_MALLOC_DISABLE_REPLACEMENT=1 to disable the TBB allocator.

Reviewed By: @sergey

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

8 months agoFix sculpt + undo curve crash
Campbell Barton [Wed, 13 Nov 2019 02:59:36 +0000 (13:59 +1100)]
Fix sculpt + undo curve crash

PaintCurve data ID data wasn't being remapped.
Error in initial undo refactor.

8 months agoFix T71494: brush curve transform crash in sculpt mode
Campbell Barton [Wed, 13 Nov 2019 02:31:59 +0000 (13:31 +1100)]
Fix T71494: brush curve transform crash in sculpt mode

Error in 309cd047ef46f

8 months agoMerge branch 'blender-v2.81-release'
Sergey Sharybin [Tue, 12 Nov 2019 13:30:22 +0000 (14:30 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoSafer fix for make_update.py on buildbot
Sergey Sharybin [Tue, 12 Nov 2019 13:28:39 +0000 (14:28 +0100)]
Safer fix for make_update.py on buildbot

Makes it so compilation doesn't fail when the SVN updating
stumbles upon checkout which doesn't have correspondence in
a tag, but which isn't so risky as previous change.

8 months agoRevert "Fix issues with make_update.py when run from release branch"
Sergey Sharybin [Tue, 12 Nov 2019 13:27:04 +0000 (14:27 +0100)]
Revert "Fix issues with make_update.py when run from release branch"

This reverts commit 8e9e58895b32afc38f856053335c9b27324c6f9e.

The change broke behavior when typing `make update` from the root of
the sources: tests folder wouldn't be updated anymore.

Getting quite close to release now, so will revert to a safer change.

8 months agoMerge branch 'blender-v2.81-release'
Sergey Sharybin [Tue, 12 Nov 2019 13:06:54 +0000 (14:06 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix issues with make_update.py when run from release branch
Sergey Sharybin [Tue, 12 Nov 2019 10:16:01 +0000 (11:16 +0100)]
Fix issues with make_update.py when run from release branch

The issue was rooting to the fact that the script was iterating into
every directory inside of blender.git/../lib/ and attempted to switch
them to the desired path. This doesn't work in an environment where
both master and release branch are built (or any environment where
non-needed SVN directories are not automatically removed).

This change makes it so script explicitly generates a list of
directories which are required for the build. For example, the script
now stores an exact folder with ABI such as win64_vc14.

Only those explicitly listed directories will be updated.

This allows to:

- Solve compilation failure of 2.81 branch after checkout for
  win64_vc15 libraries has been created.

- Fail compilation if actually expected tag is missing (for example,
  when trying to build release branch prior to libraries tag).

Now, there was a confusing logic about possible .svn folder in
lib_dirpath (effectively, blender.git/../lib/.svn) which is not
something what is supposed to happen with the setup of buildbot we are
using for quite some time now. This logic has been removed now.

This change includes old-style string format(), mainly because it is
not know that the buidlbot scripts are run using python3 on CentOS
builder.

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

8 months agoMerge branch 'blender-v2.81-release'
Philipp Oeser [Tue, 12 Nov 2019 11:24:19 +0000 (12:24 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71508: wrong gravity settings in scene defaults
Philipp Oeser [Tue, 12 Nov 2019 09:49:25 +0000 (10:49 +0100)]
Fix T71508: wrong gravity settings in scene defaults

Typo in rBf5e0dfe59c7e.
Showed when creating a new default scene.

Maniphest Tasks: T71508

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

8 months agoMerge remote-tracking branch 'origin/blender-v2.81-release'
Dalai Felinto [Mon, 11 Nov 2019 18:30:57 +0000 (15:30 -0300)]
Merge remote-tracking branch 'origin/blender-v2.81-release'

8 months agoFix T71461: Add IN_PLACE_INSTANCES to `part_prim` and `part_axis` object mode particl...
Kevin Buhr [Mon, 11 Nov 2019 17:13:39 +0000 (14:13 -0300)]
Fix T71461: Add IN_PLACE_INSTANCES to `part_prim` and `part_axis` object mode particle shaders

For `Particle Properties -> Viewport Display -> Display As` set to
circle/cross/axis, particle instances are associated with a single
resource handle (and, in particular, a single model matrix), so define
`IN_PLACE_INSTANCES` to get the right index for `ModelMatrix` and
`ModelInverseMatrix` in the shader.

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

8 months agoMerge branch 'blender-v2.81-release'
Philipp Oeser [Mon, 11 Nov 2019 16:38:07 +0000 (17:38 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71452: instance collection to scene from outliner not incrementing collection...
Philipp Oeser [Mon, 11 Nov 2019 10:49:29 +0000 (11:49 +0100)]
Fix T71452: instance collection to scene from outliner not incrementing collection usercount

Maniphest Tasks: T71452

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

8 months agoMerge remote-tracking branch 'origin/blender-v2.81-release'
Dalai Felinto [Mon, 11 Nov 2019 15:20:36 +0000 (12:20 -0300)]
Merge remote-tracking branch 'origin/blender-v2.81-release'

8 months agoFix T71487: Crashes When Calling Texture Space Operators
Dalai Felinto [Mon, 11 Nov 2019 14:35:45 +0000 (11:35 -0300)]
Fix T71487: Crashes When Calling Texture Space Operators

Issue introduced on 69ad44d5b48a.

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

8 months agoMerge branch 'blender-v2.81-release'
Dalai Felinto [Mon, 11 Nov 2019 14:26:24 +0000 (11:26 -0300)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71489: Video editor crash
Dalai Felinto [Mon, 11 Nov 2019 13:52:26 +0000 (10:52 -0300)]
Fix T71489: Video editor crash

Bug introduced on rBb77da65e8c4d.

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

8 months agoVSE: open file browser sidebar by default when adding external strips
Alessio Monti di Sopra [Mon, 11 Nov 2019 12:34:40 +0000 (13:34 +0100)]
VSE: open file browser sidebar by default when adding external strips

Open the file browser sidebar by default when adding Movie/Sound/Image Sequence Strips, to show the operator options.

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

Reviewed by: William Reynish, Julian Eisel

8 months agoFix T71474: Temporary image editor cancels to file editor after file operation
Julian Eisel [Mon, 11 Nov 2019 11:43:20 +0000 (12:43 +0100)]
Fix T71474: Temporary image editor cancels to file editor after file operation

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Mon, 11 Nov 2019 09:09:21 +0000 (20:09 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoMerge branch 'blender-v2.81-release'
Philipp Oeser [Mon, 11 Nov 2019 09:07:37 +0000 (10:07 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix lattice deform after undo and edit-mode exit
Campbell Barton [Mon, 11 Nov 2019 09:01:08 +0000 (20:01 +1100)]
Fix lattice deform after undo and edit-mode exit

Follow up on T71414

8 months agoRevert "Fix T71126: add old hotkeys to set start/end frame in the timeline to"
Philipp Oeser [Mon, 11 Nov 2019 08:59:41 +0000 (09:59 +0100)]
Revert "Fix T71126: add old hotkeys to set start/end frame in the timeline to"

This caused T71483.
Having timeline and dopesheet merged in 2.8 makes using S/E keys in timeline not work well.
2.7x keymap needs to fit with 2.8x internals, so probably 2.7x keymap will have to live with Ctrl+Home / Ctrl+End here.

This reverts commit 4fbcbbfb967cb0fdff11dfc1646a1c55bca96f1d.

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Mon, 11 Nov 2019 02:17:32 +0000 (13:17 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71414: Undoing change of lattice resolution deforms mesh
Campbell Barton [Mon, 11 Nov 2019 02:07:37 +0000 (13:07 +1100)]
Fix T71414: Undoing change of lattice resolution deforms mesh

8 months agoWindows: Fix build errors during deps build on windows.
Ray Molenkamp [Sun, 10 Nov 2019 22:45:30 +0000 (15:45 -0700)]
Windows: Fix build errors during deps build on windows.

8 months agoFix T71436: proportional_edit_objects turns off when translating cursor in edit mode
mano-wii [Sat, 9 Nov 2019 19:12:27 +0000 (16:12 -0300)]
Fix T71436: proportional_edit_objects turns off when translating cursor in edit mode

8 months agoFluid Particles: fix threading crash with viscoelastic springs.
Alexander Gavrilov [Sat, 26 Oct 2019 08:06:19 +0000 (11:06 +0300)]
Fluid Particles: fix threading crash with viscoelastic springs.

As correctly pointed out by a comment in the code, adding
new springs wasn't thread safe, and caused crashes.

Fix by buffering new springs in intermediate thread-local
arrays, which are flushed on the main thread. This is valid
because the new springs are not used until the next sim step.

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

8 months agomake_update.py: update windows library folder
Ray Molenkamp [Sat, 9 Nov 2019 02:09:59 +0000 (19:09 -0700)]
make_update.py: update windows library folder

8 months agoMerge branch 'blender-v2.81-release'
Campbell Barton [Fri, 8 Nov 2019 23:05:30 +0000 (10:05 +1100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71379: Even edge slide shows random points on screen
Campbell Barton [Fri, 8 Nov 2019 22:58:06 +0000 (09:58 +1100)]
Fix T71379: Even edge slide shows random points on screen

8 months agoFix T69799: Glitches when moving object camera is locked to
mano-wii [Fri, 8 Nov 2019 20:58:00 +0000 (17:58 -0300)]
Fix T69799: Glitches when moving object camera is locked to

The idea is to indicate that the view3d matrix is being transformed too
and this avoids cyclic dependencies.

8 months agoUI: Graph Editor Insert Keyframes Menu
Harley Acheson [Fri, 8 Nov 2019 16:48:05 +0000 (08:48 -0800)]
UI: Graph Editor Insert Keyframes Menu

Fixes alignment issues on Graph Editor menus used to insert keyframes.

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

Reviewed by Campbell Barton

8 months agoMerge branch 'blender-v2.81-release'
Bastien Montagne [Fri, 8 Nov 2019 16:48:30 +0000 (17:48 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T70778: Library Override dissabled after re-instancing same collection in differe...
Bastien Montagne [Fri, 8 Nov 2019 16:47:48 +0000 (17:47 +0100)]
Fix T70778: Library Override dissabled after re-instancing same collection in different scene.

Very stupid mistake in own new generic ID lib_link function, that would try
to link ID pointers for all data-blocks, not only those actually needing it.

8 months agoWindows: Switch to the dynamic C runtime
Ray Molenkamp [Fri, 8 Nov 2019 16:01:00 +0000 (09:01 -0700)]
Windows: Switch to the dynamic C runtime

This change switches windows to the dynamic C runtime
avoiding issues coming from mixing the static and dynamic
runtime like the ones outlined in [1]

[1] https://developer.blender.org/D5387#122165

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

Reviewed by: @Sergey

8 months agoMerge branch 'blender-v2.81-release'
Bastien Montagne [Fri, 8 Nov 2019 13:53:19 +0000 (14:53 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T70789: Using Remove Single Override breaks file loading (crash).
Bastien Montagne [Fri, 8 Nov 2019 13:52:07 +0000 (14:52 +0100)]
Fix T70789: Using Remove Single Override breaks file loading (crash).

We only need to refine rna pointer for actual collection properties,
other arrays we handle directly the the appy callback.

8 months agoMerge branch 'blender-v2.81-release'
Philipp Oeser [Fri, 8 Nov 2019 13:38:43 +0000 (14:38 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71405: Trying to Ctrl-C on many buttons crashes Blender
Philipp Oeser [Thu, 7 Nov 2019 16:53:05 +0000 (17:53 +0100)]
Fix T71405: Trying to Ctrl-C on many buttons crashes Blender

Usually Ctrl+C copies the operator name to the clipboard
["bpy.ops.material.new()", "bpy.ops.object.material_slot_remove()"]
Crash happens for all buttons of UI_BTYPE_BUT without associated
operator [some are defined with callbacks only, often these are created
with e.g uiDefIconBut (instead of e.g. uiDefIconButO)]

Other examples that crash with Ctrl+C:
- animation decorators next to animatable properties
- button to show a modifier texture in the texture tab
- ...

2.79 survived here (result in the clipboard was just not changed hitting
Ctrl+C on these buttons), this is what happens with this patch as well.

Maniphest Tasks: T71405

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

8 months agoMerge branch 'blender-v2.81-release'
Bastien Montagne [Fri, 8 Nov 2019 13:30:22 +0000 (14:30 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71199: Child-parent relationships arent kept after you make instances real.
Bastien Montagne [Fri, 8 Nov 2019 13:27:48 +0000 (14:27 +0100)]
Fix T71199: Child-parent relationships arent kept after you make instances real.

Comparison function of the of the parent ghash was not fully correct,
could lead to some false positives in some cases...

8 months agoMerge branch 'blender-v2.81-release'
Philipp Oeser [Fri, 8 Nov 2019 13:28:45 +0000 (14:28 +0100)]
Merge branch 'blender-v2.81-release'

8 months agoFix T71372: view layer is not maintained when area is duplicated into new window
Philipp Oeser [Thu, 7 Nov 2019 10:00:56 +0000 (11:00 +0100)]
Fix T71372: view layer is not maintained when area is duplicated into new window

Maniphest Tasks: T71372

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