Blender Git Commits

Blender Git "master" branch commits.

Page: 492 / 5574

November 11, 2020, 05:14 (GMT)
Cleanup: pass header size to 'is_a' callbacks

No functional changes, prepare for fixing out-of-bounds access
when reading headers.
November 11, 2020, 05:14 (GMT)
Cleanup: use 'filepath' instead of 'name' for ImBuf utilities
November 11, 2020, 05:14 (GMT)
Cleanup: use bool for imbuf save callbacks
November 11, 2020, 05:14 (GMT)
Cleanup: avoid boolean literals for functions that return int
November 11, 2020, 04:05 (GMT)
Cleanup: use define for targa header size
November 11, 2020, 03:54 (GMT)
Cleanup: remove redundant NULL checks in ImFileType.is_a callback

Most of these callbacks don't do a NULL check,
so there is no need to do this for bmp/png.

Also correct radiance_hdr comments.
November 11, 2020, 03:44 (GMT)
Merge branch 'blender-v2.91-release'
November 11, 2020, 03:41 (GMT)
ImBuf: replace incorrect strstr use with memcmp

Besides being incorrect as only the first two bytes should be tested,
searching binary data using `strstr` can easily read past buffer bounds.
November 11, 2020, 00:34 (GMT)
Merge branch 'blender-v2.91-release'
November 11, 2020, 00:29 (GMT)
Fix: Selection not possible from outliner gutter

Selection should be possible from the left gutter in object mode. When
in other modes the mode column displays icon buttons which should be
prioritized for selection only in those modes.

Introduced in rB2110af20f5e6.
November 10, 2020, 22:11 (GMT)
Cleanup: clang-format
November 10, 2020, 22:11 (GMT)
Cleanup: use preprocessor version check for PyTypeObject declaration

While `tp_print` was deprecated, Python 3.8+ uses this for
'tp_vectorcall_offset' which wasn't stated in the comment from
efd71aad4f22ec0073d80b8dd296015d3f395aa8.

Instead of suppressing clang-tidy, use preprocessor a check since
this properly represents the difference between Python versions.
November 10, 2020, 20:23 (GMT)
Windows: Fix build issue with VCPKG

For blender we disable VCPKG to prevent it from picking
up the wrong libraries from VCPKG rather than our lib folder
some of the cycles tests needed this to link correctly.

reported by @alef on chat
November 10, 2020, 17:59 (GMT)
Cycles: fix compilation of OSL shaders following API change

The names of the parameters are based on those of those of the sockets, so they also need to be updated. This was forgotten about in the previous commit (rBa284e559b90e).

Ref T82561.
November 10, 2020, 17:28 (GMT)
Fix NanoVDB compile errors with recent NanoVDB versions

There were some changes to the NanoVDB API that broke the way Cycles was previously using it.
With these changes it compiles successfully again and also still compiles with the NanoVDB revision
that is currently part of the Blender dependencies. Ref T81454.
November 10, 2020, 16:16 (GMT)
Fix (unreported) potential assert in viewlayer synchronization.

Some operations, like remapping and ID (Object) to another, can lead to
having the same object in more than one base.

While this is not a valid state, this is being taken care of by the
`BKE_layer_collection_sync` call, so the object-to-base GHash generation
itself should be resilient to such issue.

Note: another way to fix this would be to make remapping post-process
code check explicitely for such doublons, but I would rather avoid
adding even more 'specialized' code there, it already has to deal with
too many of those corner cases.
November 10, 2020, 15:48 (GMT)
MSVC: Fix build warning

If a define of NOMINMAX was made before BLI_task.hh was included,
the compiler would emit a

warning C4005: 'NOMINMAX': macro redefinition

warning, to work around this only define it if it is not already
defined, and only undefine it if we were the ones that made the
define earlier.
November 10, 2020, 15:20 (GMT)
Cycles: Enable NanoVDB usage by default

As discussed during the Rendering Metting. Ref T81454.
November 10, 2020, 15:18 (GMT)
Fix T81951: Add Cube new tool surface snaping not working

For the `plane_depth` of type `PLACE_DEPTH_SURFACE` to take effect, a `snap_context` is needed.

But, even if a temporary `snap_context` was created for `plane_orient == PLACE_ORIENT_SURFACE`,
this context was not used for `plane_depth`.

So, use a temporary `snap_context` for `PLACE_DEPTH_SURFACE` (as it is done for `PLACE_ORIENT_SURFACE`).

Differential Revision: https://developer.blender.org/D9345
Differential Revision: https://developer.blender.org/D9435
November 10, 2020, 15:14 (GMT)
LibOverride: Optimize deletion of overrides in liboverride delete.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021