Blender Git Commits

Blender Git "master" branch commits.

Page: 313 / 5574

April 12, 2021, 16:08 (GMT)
Previews: allow undo'ing datablock preview generation

Allow users to undo the effect of the "Generate Preview" operator in the
asset browser (`ED_OT_lib_id_generate_preview`). Without this, the
button is too dangerous.
April 12, 2021, 15:30 (GMT)
UI: Fix a few RNA description strings

A few strings describing RNA objects were wrong, including copy/paste errors, spelling and case.

Reviewed By: Blendify

Differential Revision: https://developer.blender.org/D10899
April 12, 2021, 14:52 (GMT)
Win32: Fix fullscreen errors using Taskbar system menu

Changing window state using taskbar system menu could result in a titleless window.

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

Reviewed by Ray Molenkamp
April 12, 2021, 14:08 (GMT)
Fix unreported: Flat Surface objects

Before rBf674976edd88, the flag indicating whether a curve was 2D or 3D was
ignored by Surfaces objects.

So it can be said that Surfaces objects were always 3D.

We could remove updates to 2D on Surface objects, so the behavior is
identical to what it was before.

But this would also cause the return of `data.dimensions` to be misleading,
complicate the code a bit and add a micro overhead.

So the solution here is just to init all Surface objects as 3D.

Surface objects can now be constrained to 2D with the command:
```
data.dimensions = '2D'
```
April 12, 2021, 12:42 (GMT)
Fix T74680: Incorrect mixing in Glare node

The mixing function was designed to give correct results for Mix values of
-1, 0, and +1, but the behavior between these points was not linear. This is
unavoidable, because the function depends on both Mix and Mix^2 (by
multiplying value and mf) so they could not cancel out completely.

The new formula simply calculates the weighted sum without trying to invent
a smooth function.
Value for MixGlareOperation is now passed directly without scaling because
it is then easier to use.
Note that the previous formula performed max() twice for both input image
and the result, now there is just one max() per channel because the glare
input can't be negative.

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D7138
April 12, 2021, 12:29 (GMT)
Compositor: Allocate OIDN memory after receiving lock.

Related to {T77023}. When using many Denoise nodes the memory in OIDN
are allocated up front. A mutex could stall the process until. This
change will allocate the memory after it received the lock.
April 12, 2021, 07:50 (GMT)
Fix T87252: File output node broken with more than 4 inputs.

In recent refactor the operator sockets were migrated from a std::list to a blender::Vector.
The way how the file output node created the sockets along mapping the sockets could
lead to storing incorrect pointers.

This patch fixes this by defining and mapping the sockets in separate loops.
April 12, 2021, 07:50 (GMT)
Fix: File output uses incorrect resolution when first socket unused.

File output node always received the resolution from the first socket.
When that socket didn't had a link it would use a resolution of 0,0.
What lead to not saving the file at all.

This only effected Multi layer OpenEXR files.
This change would go over all the links to find the first valid
resolution.
April 12, 2021, 07:18 (GMT)
Fix T87348: convert vertex colors to linear color space

Differential Revision: https://developer.blender.org/D10956
April 12, 2021, 07:14 (GMT)
Spreadsheet: add spreadsheet width unit

This also fixes the issue that the width of the "Name" column
when viewing instances does not resize correctly.

Differential Revision: https://developer.blender.org/D10926
April 12, 2021, 07:10 (GMT)
Fix T87308: don't show columns when there are no instances
April 12, 2021, 04:24 (GMT)
Fix T87259: Un-Subdivide creates duplicate faces

Add argument to BM_vert_collapse_faces to remove any faces that become
duplicate as result of the collapse.
April 12, 2021, 03:36 (GMT)
Cleanup: defer 'os' imports in startup scripts
April 12, 2021, 02:23 (GMT)
project_info: use type hints

'mypy --strict' passes without errors.
April 12, 2021, 02:22 (GMT)
cmake_consistency_check: use type hints

'mypy --strict' passes without errors.
April 12, 2021, 02:04 (GMT)
Cleanup: remove make_quicky and enum generation utilities

- Remove `make_quicky` as on modern systems linking is the main
bottleneck, and there isn't such a gain from partial builds.

- Remove enum generator as `PyC_StringEnumItems` & `EnumPropertyItem`
are used in most places to access enums from Python, otherwise macros
are added via macros.
Revision 09d7d88 by Falk David
April 11, 2021, 20:10 (GMT)
Fix T87157: GPencil subdivide last segment

Previously it was not possible to subdivide the last segment of a cyclic
stroke.

The fix makes sure that the correct number of new points is calculated
correctly and adds the new points to the last segment.

Reviewed By: antoniov

Maniphest Tasks: T87157

Differential Revision: https://developer.blender.org/D10902
April 11, 2021, 06:02 (GMT)
Fix error extracting date in manpage generator

Error from recent cleanup 0e3bc2e3210dae253dc6fee47fcec4ce2502887a
April 11, 2021, 04:43 (GMT)
Cleanup: use ELEM, STREQ macros
April 11, 2021, 04:37 (GMT)
Cleanup: clang-format
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021