Blender Git Commits

Blender Git "master" branch commits.

Page: 545 / 5574

October 8, 2020, 16:39 (GMT)
Cleanup: Simplify use of 'Snapping Gears'

This commit removes `t->snap[0]` and `t->snap_spatial[0]`.

They were not actually being used, and could add overhead for
transformation without snap.
October 8, 2020, 16:19 (GMT)
Refactor CustomData interpolation code.

- Move some security checks outside of `interp` callbacks.
Namely, that we do get interpolation weights, and have something to
interpolate.
Some callbacks where not checking on those anyway, safer to move that
up into calling code.

- Cleanup usage of sub-weights, lots of interpolation callbacks wher
actually using those completely wrong.

- Change default behavior when no weights are given to higher-level API
functions: prevriously, each callback was responsible to handle that
case (and one did not even do it!), they were switching to purely
additive behavior then.
Instead, we now default to expected simple average of source values.

Note that the only real important change here is defaulting to actual
average of source value when no inertpolation weights are given (afaik,
this only happens in Weld modifier code).

Differential Revision: https://developer.blender.org/D9114
October 8, 2020, 16:19 (GMT)
Cleanup/refactor: move init of ParticleSettings to proper place.
October 8, 2020, 16:19 (GMT)
Add DNA defaults for ParticleSettings.
October 8, 2020, 16:17 (GMT)
DNA: cleanup endian switching when loading file

This patch "modernizes" `DNA_struct_switch_endian` similar to
how I updated `DNA_struct_reconstruct` recently. Furthermore,
some special case handling have been moved to another place.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D9089
October 8, 2020, 15:58 (GMT)
Revert "BGL: Workaround broken bgl usage caused by GPU refactor"

This reverts commit f12b0373f322b710b9fa5cebb67bdf363ff90e9f.
October 8, 2020, 15:37 (GMT)
UI: Add icons for new sculpt trim tools

This patch adds missing icons for the new trim tools in sculpt mode.
Although these tools recently got "add geometry" modes, it's more
essential to highlight the most important feature of the tool,
trimming, than to try to portray everything they can do.

Differential Revision: https://developer.blender.org/D8963
October 8, 2020, 15:19 (GMT)
Cleanup/refactor: move init of MovieClip to proper place.
October 8, 2020, 15:19 (GMT)
Add DNA defaults for MovieClip.
October 8, 2020, 14:50 (GMT)
UI: Add icons for new face set tools

This patch adds missing icons for the new sculpt face set tools, and
updates the mask icons to be more consistent with the changes.

Currently draw face sets and draw mask icons are inconsistent and don't
relate to drawing/painting masks or face sets. This commit makes the
icons consistent and reusable for future tools like sculpt vertex
colors.

Differential Revision: https://developer.blender.org/D8875
October 8, 2020, 14:36 (GMT)
BGL: Workaround broken bgl usage caused by GPU refactor

This directly adress the issues caused by rB536c2e0ec916.

Since the state tracking is done at a lower level, using the bgl
functions needs to be safegarded by the state manager.
The current workaround is to bypass `apply_state` when inside a
callback that used a `bgl` function.

Related to T80730.

This fix T81003.

Also this fix the default blend equation for callbacks.
Fixes T80169 T81289.
October 8, 2020, 14:25 (GMT)
Cleanup/Refactor: Shapekey: Get rid of `BKE_key_copy_nolib()`

Once again, no behavioral change expected here.
Revision d7f482f by Ankit Meel
October 8, 2020, 14:20 (GMT)
CMake/macOS: Avoid passing compiler flags to try_compile.

`APPLE` platform handles ASan compiler and linker flags using
`add_compile_options` and `add_link_options`. {rB74bcb32c9f02}

Arguments in `CMAKE_{LANG}_FLAGS{_CONFIG}` are also passed to
`try_compile` which will fail due to linker errors, since link flags
are not set. `try_compile` is used by `find_package(Boost)` for
`thread` library.

See CMP0066 [1] also.

[1] https://cmake.org/cmake/help/latest/policy/CMP0066.html

Ref D8855
October 8, 2020, 14:17 (GMT)
Fix T79615: UI: icons and widget emboss look different from earlier versions

Both the default theme and Blender Light have been updated.

Blender Light also includes automatically generated colors based on the
default theme that were not set previously.
October 8, 2020, 14:11 (GMT)
Cleanup/refactor: move init of Collection to proper place.
October 8, 2020, 14:11 (GMT)
Add DNA defaults for Collection.
October 8, 2020, 13:00 (GMT)
Hair: Remove warning about undo when Delete Edit

Deleting the particle editmode is fully supported by undo now.
No need to warn the user about that anymore.
October 8, 2020, 11:23 (GMT)
Cleanup/refactor: move default init of armature to proper place.
October 8, 2020, 11:23 (GMT)
Armature: Add minimal DNA defaults for bArmature.

Using mainly values used in `BKE_armature_add()`.
October 8, 2020, 10:55 (GMT)
Cleanup: remove unnecessary includes

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