Blender Git Commits

Blender Git "master" branch commits.

Page: 212 / 5574

July 12, 2021, 13:40 (GMT)
Fix T89396: Cycles missing passes with multiple view layers and persistent data
July 12, 2021, 12:40 (GMT)
Cleanup: Clang format

Sorry, missed this in 53cf8e83b37d.
July 12, 2021, 12:29 (GMT)
Fix T89775: geometry nodes logging crash during render

Under some circumstances (e.g. when rendering) the geometry
nodes logger is not used. This was missing a simple null check.
Revision 280dac3 by Julian Eisel
July 12, 2021, 09:46 (GMT)
Blenlib: Add BLI_assert_msg() for printing an extra string if the assert fails

It always bothered me that we'd do the `BLI_assert(... || !"message")` trick to
print a message alongside the assert, while it should be trivial to have a way
to pass an extra string as additional argument.

This adds `BLI_assert_msg()` with a second argument for a message. E.g.:
```
BLI_assert_msg(
params->rename_id == NULL,
"File rename handling should immediately clear rename_id when done, because otherwise it will keep taking precedence over renamefile.");
```

On failure this will print like this:
```
0 Blender 0x00000001140647a3 BLI_system_backtrace + 291
[...]
13 Blender 0x00000001092647a6 main + 3814
14 libdyld.dylib 0x00007fff203d8f5d start + 1
BLI_assert failed: source/blender/editors/space_file/file_ops.c:2352, file_directory_new_exec(), at 'params->rename_id == ((void*)0)'
File rename handling should immediately clear rename_id when done, because otherwise it will keep taking precedence over renamefile.
```

Reviewed by: Sybren St�vel, Jacques Lucke, Sergey Sharybin, Campbell Barton

Differential Revision: https://developer.blender.org/D11827
July 12, 2021, 08:48 (GMT)
Fix T89765: boolean modifier collection refcount issue

The 'collection' property is flagged PROP_ID_REFCOUNT, so the
modifiers foreachIDLink functions should walk with IDWALK_CB_USER
(instead of IDWALK_CB_NOP).

Otherwise the modifier wont be included as a user for the collection
(e.g. on file read); removing the collection from the modifier will
decrement usercount though (which in worst case scenario makes the
collection orphan and will result in data loss)

Maniphest Tasks: T89765

Differential Revision: https://developer.blender.org/D11877
Revision 2289e26 by Campbell Barton
July 11, 2021, 05:31 (GMT)
Cleanup: correct spelling in comments, remove profanity
Revision 0f20104 by Campbell Barton
July 11, 2021, 05:22 (GMT)
Edit Mesh: tag the object data for updating instead of the object

When editing vertices with number buttons, tag the mesh, not the object.

This prevents the evaluated mesh being re-created for the object
and is correct as the mesh is being edited not the object.

Note that all tags for updating object geometry should be checked
to see if this change should be applied there too.

From a simple test on a high-poly mesh this gives around 1.3x
overall speedup.
Revision 49a363f by YimingWu
July 10, 2021, 13:52 (GMT)
LineArt: Fix edge type panel `use_cache` prop.

The name was mistakenly written as `use_cached_result`. Fixed.
Revision 77a28f3 by YimingWu
July 10, 2021, 06:04 (GMT)
LineArt: Fix modifier apply.

After cache implementation line art apply will not show strokes properly, now fixed.

# Conflicts:
# source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
July 9, 2021, 23:23 (GMT)
UI: Clip: Fix checkbox wrongly greying out entire column

The Pattern and Search display options in the Clip Editor display settings
are independent and should not be grayed out since those options
remain relevant even with path display turned off.

Alternative solution were propoesed in D11630 and D11715
but each of those patches had downsides.
This solution is the simplest and does not break muscle memory.
July 9, 2021, 21:17 (GMT)
make.bat: Update detection order of MSVC

VS2019 is the preferred version to use these
days, look for it before looking for 2017
and 2022.
July 9, 2021, 20:00 (GMT)
Fix channel packed images display in the Image/Node editor

Channel packed images should not have their RGB affected by alpha.
rendering in Cycles and Eevee was fine already, but displaying these was
not right in the Image and Node editors.

Not 100% sure what to do for the "Color and Alpha" mode, but I guess
this should stay like it was before (applying the alpha).

"Color", "R", "G", and "B" modes were changed to not have color be
affected by alpha though.

ref. T89034

Maniphest Tasks: T89034

Differential Revision: https://developer.blender.org/D11871
July 9, 2021, 16:34 (GMT)
Geometry Nodes: fix direction mode in curve primitive line node

Differential Revision: https://developer.blender.org/D11872
July 9, 2021, 13:29 (GMT)
Fix a compiler warning on Windows for Exact Boolean.

For some reason, the Windows compiler didn't like the
static function being used in the parallel_reduece.
July 9, 2021, 13:21 (GMT)
Fix: crash when using empty attribute search
July 9, 2021, 13:03 (GMT)
Walk Navigation: Z axis correction

Fly navigation has always had this option. They is particularly useful
when users use "Trackball" as their orbit method.

For walk navigation this works as a one off option. Not as a toggle like
for fly navigation.

Differential Revision: https://developer.blender.org/D11863
July 9, 2021, 09:21 (GMT)
Fix T89435: Reordering FCurves can cause crash or corruption

Correctly reset `prev` and `next` pointers of action group FCurves when
separating them into distinct `ListBase`s per `bActionGroup`.

These `NULL` pointers are necessary to temporarily demarcate the start &
end of the `bActionGroup::channels` list. Having them still point to
other FCurves caused ordering issues when moving curves towards the
start/end of a group.

This commit corrects the above issue and adds versioning code to rectify
any ordering issues that may have been caused. For this purpose the
`BKE_action_groups_reconstruct()` function is rewritten to avoid relying
on the `bAction::curves` list order or `prev` link integrity.

Differential Revision: https://developer.blender.org/D11811
July 9, 2021, 09:06 (GMT)
Deps: upgrade OpenXR 1.0.14 ? 1.0.17

Simple upgrade of OpenXR to 1.0.17. A version bump was enough, no
Blender code had to change.

Reviewed By: LazyDodo, mont29

Differential Revision: https://developer.blender.org/D11848
July 9, 2021, 08:43 (GMT)
Fix cycles crash when changing viewport display pass

It was possible that render buffers and scene kernel data will be out
of sync because reset and scene update happens in different locks.

This is similar issue we've fixed in the Cycles X branch, so backported
relevant changes from there.

This change removes what seems to be unused feature kernel.

Differential Revision: https://developer.blender.org/D11828
July 9, 2021, 08:37 (GMT)
Tracking: Fix "Lock to Selection" option from header causing jump

This change makes the behavior consistent between shortcut and
option from space clip's header.

The only caveat is that the "Lock to Selection" is removed from the
Display popover. This is because it is rather hard to make operator
to render same as regular checkbox. However, shouldn't be a problem
because the setting in popover was redundant.

Differential Revision: https://developer.blender.org/D10423
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021