Blender Git Commits

Blender Git "master" branch commits.

Page: 449 / 5574

December 24, 2020, 11:40 (GMT)
Bake: vertex color baking support for Cycles

In the Bake > Output panel, there is now a choice between Image Textures and
Vertex Colors. The active vertex color layer is used for baking. This works
with both existing per-corner and sculpt per-vertex vertex colors.
December 24, 2020, 11:00 (GMT)
Cleanup: refactoring of bake code in preparation of vertex color baking

Split of internal/external image bake target code off into smaller functions and
refactor associated data structures for clarity. Designed so that a vertex color
bake target is easy to fit in.

Also avoid passing in a huge number of arguments into the main baking function,
pass a struct instead.
December 24, 2020, 09:42 (GMT)
Fix T83997: Duplicated audio does not sound the same

The issue was that sounds were always faded from 0 volume when they
started and depending on the currently used buffer size, the fading took
longer or shorter.

The solution stores whether the sound has ever been played back and
consequently does not fade when starting to play back.
December 24, 2020, 09:42 (GMT)
Audaspace: port accuracy improvement from upstream.
Revision c9efb54 by Hans Goudey
December 23, 2020, 18:13 (GMT)
Cleanup: Clang format
December 23, 2020, 15:37 (GMT)
Geometry Nodes: new Rotate Points node

This node updates the "rotation" attribute on points.
Multiple ways to specify the rotation are supported.

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

Ref T83668.
December 23, 2020, 15:03 (GMT)
Fix T84002: Sculpt: Masking operations crash if multires is in play.

This fixes the main issue there (essentially a followup to
rB90e12e823ff0: Fix T81854: crash when undoing switch between sculpt and
edit mode).

We basically remove more (hopefully all the remaining!) modifications of
orig mesh from `sculpt_update_object`, as those done here will not be
immediately available in the evaluated data (that specific bug happened
because masking data was added to orig mesh there, but not flushed to
depsgraph evaluated one).

This also goes towards a better separation between handling of evaluated
data and orig one.

Note that modification of orig mesh data can still happen, e.g. values
in some cdlayers, but at least all pointers should now be valid in the
evaluated mesh.

There are still some issues, e.g. we now get an assert/crash in
`multires_reshape_assign_final_coords_from_ccg` when undoing out of the
Sculpt mode, presumably because subdiv_ccg data remains unchanged then
(and hence still has the `has_mask` flag set), while actual mesh data do
not have that cdlayer anymore...

This commit also cleans up/simplifies some code,
`ED_object_sculptmode_enter_ex` was (indirectly) calling
`BKE_sculpt_face_sets_ensure_from_base_mesh_visibility` twice e.g.
December 23, 2020, 15:03 (GMT)
Workaround T84084: Assert/crash when undoing from Sculpt mode to Object one.

Disclaimer: This workaround avoids crashing with current state of the
code and is only committed as temporary band-aid until we can assess the
full issue and decide if/how it needs to be adressed.
December 23, 2020, 14:50 (GMT)
Fix T84063: crash reading pointer properties in Attribute shader node

Path resolving can find e.g. a datablock rather than a float or integer,
treat that as a failure to find a valid property.
December 23, 2020, 14:48 (GMT)
Fluid: Added new viscosity solver

Mainly updated the Mantaflow version. It includes the new viscosity solver plugin based on the method from 'Accurate Viscous Free Surfaces for Buckling, Coiling, and Rotating Liquids' (Batty & Bridson).

In the UI, this update adds a new 'Viscosity' section to the fluid modifier UI (liquid domains only). For now, there is a single 'strength' value to control the viscosity of liquids.
Revision 5cfda8e by Julian Eisel
December 23, 2020, 14:31 (GMT)
Fix crash closing File Browser window after closing temporary render window

This seems to be a longer standing issue. Steps to reproduce were:
* With factory settings, Ctrl+O then F12
* Close the render window using the window close button
* Close the File Browser window using the window close button

This could be OS specific though, at least on macOS this caused a crash.
Revision 21cb288 by Julian Eisel
December 23, 2020, 13:43 (GMT)
Fix incorrect debugging text in extra operator icons for buttons
Revision 78d2ce1 by Julian Eisel
December 23, 2020, 13:34 (GMT)
Fix T84013: Crash closing maximized File Browser opened from Preferences

After 1e799dd26ec1, the logic to recognize a temporary File Browser window
didn't work correctly anymore. It would recognize a maximized File Browser
inside a temporary window as a temporary File Browser window, and attempt to
close this (rather than returning to the previous layout).
The logic there was pretty weak, and still is I think. A more stable solution
would need bigger refactoring.

With this, it's also not possible to maximize or fullscreen an area within a
temporary window (Preferences, File Browser, render window) anymore. Think that
won't make a noticable difference, since you couldn't open multiple areas there
anyway, and the area seems to be maximized already.

Cleaned up the code a bit to not become more confusing with the changes.
Revision 27fcaa6 by Julian Eisel
December 23, 2020, 13:34 (GMT)
Cleanup: Move functions to new ED (editor) operators file & general cleanup

With the new `ed_util_ops.c` introduced in 2250b5cefee7, existing code can be
cleaned up to use it.

* Move new ID preview operators to `ed_util_ops.c`
* Move ED operator registration to `ed_util_ops.c`
* Use doxygen sections in `ed_util_ops.c`
* Rename ID related ED operators to use `ED_OT_lib_id_` prefix.
* Remove unused `#include`s
December 23, 2020, 10:17 (GMT)
Sculpt Undo: Fix broken memory size and potential use of uninitialized variables.

That code looked really like a joke tbh... Random reported memory usage
is not really that important, but the uninitialized items counts was
potentially fairly severe.
December 23, 2020, 01:13 (GMT)
Cleanup: Reduce Variable scope clip_buttons
Revision 8d3d4c8 by Hans Goudey
December 22, 2020, 20:58 (GMT)
Cleanup: Use true and false for booleans
December 22, 2020, 18:26 (GMT)
WM: minor optimization for when there is a large number of notifiers

Don't add the same stats refresh notifiers multiple times, it can be slow to
search the full list of notifiers for duplicates when there are many.

Fundamentally the time complexity in searching for duplicates is still bad.

Inspired by D9901 from Erik Abrahamsson
December 22, 2020, 17:18 (GMT)
UI: keep image open button always visible in image editor datablock selector

Does not need to be hidden in the menu.
Revision 00ff3df by Hans Goudey
December 22, 2020, 16:35 (GMT)
Cleanup: Reduce variable scope in object.c
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021