Blender Git Commit Log

All Blender Git commits.

Page: 1238 / 8462

October 1, 2020, 10:13 (GMT)
Fix some inactive modifier properties not being editable

The convention is to keep inactive settings editable even if they are grayed
out for having no effect due to other settings.
October 1, 2020, 10:05 (GMT)
Windows: workaround to make Windows Ink tablet API work

Now Wintab is not initialized when starting Blender with the tablet API
preference set to native, since that disables Windows Ink.

Note that changing the tablet API requires restarting Blender for changes
to take effect. This serves as a stopgap to allow use of Windows Ink until
runtime API switching is merged.

Differential Revision: https://developer.blender.org/D9051
October 1, 2020, 09:53 (GMT)
macOS: support for key repeat events in keymaps

Differential Revision: https://developer.blender.org/D8882
Revision 63c906e by Ankit Meel (master)
October 1, 2020, 08:56 (GMT)
Fix T81340: UBSan: addition of unsigned offset causes overflow

The warning:
runtime error: addition of unsigned offset to 0x61a0000b22d8
overflowed to 0x61a0000b22b8

Fix T81340 (partially)

Reviewed By: campbellbarton

Maniphest Tasks: T81340

Differential Revision: https://developer.blender.org/D9063
October 1, 2020, 05:03 (GMT)
Cleanup: avoid applying offset to null pointer

Based on D9069 by @ankitm.
October 1, 2020, 04:49 (GMT)
Cleanup: avoid member access within null pointer

While harmless, UBSan warns about this.
Prefer offsetof where possible since it's more readable.
October 1, 2020, 04:32 (GMT)
Cleanup: dna_genfile API for accessing struct member offsets

- Rename `find_elem` to `elem_offset` (matching `elem_exists`).

- Remove unused `SDNA_StructMember` return argument.

- Return an offset instead of a pointer which was being converted
back into an offset by one caller,
in this case there was no way to tell the difference between
and element that doesn't exist and a struct member
at the start of the array.

Resolves UBSan warning raised in T81340.
October 1, 2020, 03:06 (GMT)
USD importer: code formatting and style cleanup. Also, simplified code for setting object and data names.
September 30, 2020, 18:50 (GMT)
Fix File Browser filtering showing workspaces for "Environment" category

This is not an appropriate category for workspaces.
Mistake in 7f564d74f9ed. My intention was probably to add it to the
"Miscellaneous" category.
Revision 2cc913d by Hans Goudey (master)
September 30, 2020, 17:31 (GMT)
Fix implicit conversion from pointer to bool

Error in 9b6c5268bc20. Also move variable declaration to where it's
used to reduce confusion.
Revision 8cbd096 by Hans Goudey (master)
September 30, 2020, 17:21 (GMT)
Cleanup: Remove unused View2D variables and function

It looks like this code was left over from tabbed panels in the
properties editor. It wasn't used anywhere except for in one line of
the horizontally-aligned panel code that was recently removed.

Differential Revision: https://developer.blender.org/D8651
Revision 65e4bfe by Hans Goudey (master)
September 30, 2020, 17:16 (GMT)
Cleanup: Reduce indentation

Instead of indenting the entire functional block, check for the error
case and the supported case early to make the code more readable.
Revision 60e5ebd by Brecht Van Lommel (master)
September 30, 2020, 16:29 (GMT)
Fix Cycles CUDA kernels for Ampere not building with CUDA 11

Running Blender on Ampere cards was already possible with ptx, this fix is
needed to support building CUDA binaries.

Note the CUDA version used for official Blender builds is still 10, this is
merely the change to make it possible for those using CUDA 11 and specifying
the sm_8x kernels to be compiled.

Found by Milan Jaros.
September 30, 2020, 15:21 (GMT)
Support showing local assets in Asset Browsers ("Local" repository)

Adds a new repository "Local" (will probably rename this in a bit, together
with other UI improvements).

The asset browser shows the assets in the current Blender session then. Note
that there's a difference between the data saved in the file, and the current
session's data - the file may have unsaved changes.
So this new repository acts on the current runtime "main" data, not on a file
stored on disk.

Note that the Asset Browser still has to refreshed or reopened when
creating/deleting assets, so that the changes are reflected.
September 30, 2020, 15:20 (GMT)
Subdivision Surfaces: make uv smooth items consistent with new boundary smooth

This adds an option to smooth UV boundaries including corners, and renames the
available options to None / Keep Corners / All.

Ref D8413
September 30, 2020, 15:20 (GMT)
Subdivision Surfaces: add boundary smooth option to modifiers

This adds the option to either smooth the entire boundary, or to keep
corners sharp, for the Subdivision Surface and Multiresolution modifiers.

This mainly helps with compatibility with other software. The default
behavior remains to smooth the entire boundary.

Differential Revision: https://developer.blender.org/D8485
September 30, 2020, 14:39 (GMT)
Subdivision Surfaces: add option disable using the limit surface

This makes subdivision surfaces compatible with the old subdivision
surface modifier and other applications that do not use the limit surface.

This option is available on the Subdivision Surface modifier.

Differential Revision: https://developer.blender.org/D8413
September 30, 2020, 14:10 (GMT)
Cycles: Fix usage of memory barriers in split kernel

On user level this fixes dead-lock of OpenCL render on Intel Iris GPUs.
Note that this patch does not include change in the logic which allows
or disallows OpenCL platforms to be used, that will happen after the
kernel fix is known to be fine for the currently officially supported
platforms.

The dead-lock was caused by wrong usage of memory barriers: as per the
OpenCL specification the barrier is to be executed by the entire work
group. This means, that the following code is invalid:

void foo() {
if (some_condition) {
return;
}
barrier(CLK_LOCAL_MEM_FENCE);
}

void bar() {
foo();
}

The Cycles code was mentioning this as an invalid code on CPU, while in
fact this is invalid as per specification. From the implementation side
this change removes the ifdefs around the CPU-only barrier logic, and
is implementing similar logic in the shader setup kernel.

Tested on NUC8i7HVK NUC.

The root cause of the dead-lock was identified by Max Dmitrichenko.

There is no measurable difference in performance of currently supported
OpenCL platforms.

Differential Revision: https://developer.blender.org/D9039
September 30, 2020, 13:54 (GMT)
Tracking: Implement Brown-Conrady distortion model

Implemented Brown-Conrady lens distortion model with 4 radial and
2 tangential coefficients to improve compatibility with other software,
such as Agisoft Photoscan/Metashapes, 3DF Zephir, RealityCapture,
Bentley ContextCapture, Alisevision Meshroom(opensource).

Also older programs: Bundler, CPMVS.
In general terms, most photogrammetric software.

The new model is available under the distortion model menu in Lens
settings.

For tests and demos check the original patch.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D9037
Revision 3559b8a by Joseph Eagar
September 30, 2020, 12:13 (GMT)
Merge branch 'master' into joeedh-trimesh-sculpt
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021