Blender Git Commits

Blender Git commits from all branches.

Page: 682 / 2888

October 1, 2020, 13:37 (GMT)
Sculpt: Preserve Mesh visibility from edit mode using the Face Sets

Before this change, when users switch from edit mode to sculpt mode, the
entire mesh would be visible. Even if in the edit mesh mode part of it was
set to invisible.

With this change the visibility is preserved, by creating a separate face set
for the visible and invisible parts of the mesh and setting their initial visibility.

Implementation details: This adds a function to initialize a new Face Set
datalayer taking the current mesh visibility into account which is stored
in the ME_HIDE flag of the vertices.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D8901
October 1, 2020, 13:37 (GMT)
Sculpt: Line Project Gesture tool

This tool projects all vertices to the right of the plane defined by the
line gesture towards the plane. By doing this, this tool can create cuts
and plane surfaces in the mesh without modifying the geometry or using
boolean operations, so it is much faster than bisecting the mesh for
cases where the geometry was going to be remeshed afterwards.

Added as experimental as it does not have icon.

Reviewed By: sergey, Severin

Differential Revision: https://developer.blender.org/D9021
October 1, 2020, 13:37 (GMT)
API Docs: Correct syntax for bpy.utils.register_class
October 1, 2020, 13:37 (GMT)
API Docs: Fix corrupted document of gpu.select.load_id

The Python API document of gpu.select.load_id does not follow rst format.
c.f. https://docs.blender.org/api/current/gpu.select.html

This patch fixes it.

Reviewed By: Blendify

Differential Revision: https://developer.blender.org/D8547
October 1, 2020, 13:37 (GMT)
API docs: Fix sytax error for delaunay_2d_cd

Alternative solution to https://developer.blender.org/D8546
October 1, 2020, 13:37 (GMT)
Fix T81100: ccl::Node: ASan SEGV due to bad pointer

`SOCKET_OFFSETOF` was added in the initial commit {rBec51175f1fd6c91d5}
when `offsetof` [1] was not supported well enough. GCC and LLVM
support it since C++17.

Other two changes: type and size check can be done without creating
an invalid address too.

[1] https://cppreference.com/w/cpp/types/offsetof

Reviewed By: campbellbarton, brecht

Maniphest Tasks: T81100

Differential Revision: https://developer.blender.org/D9042
October 1, 2020, 13:37 (GMT)
October 1, 2020, 13:37 (GMT)
Fix unreported Eisenbug leading to a crash when reading a blend file.

This took more than a day to fully investigate and understand, one of
the reasons being that the probability of the issue to show up was
extremely low, and subjected to very specific random factors.

Root of the issue is that, in some very rare cases, a newly read ID
might get the exact same memory address as the one it had when the blend
file was saved.

In that case, `BKE_workspace_active_set` would return immediately, since
the pointer to the active workspace would remain unchanged. But that
lead to having an unset NULL active layout pointer, which would crash
when attempting to get e.g. the active screen.

For the record, I ran into this when running a specific build (master
with one flag added to the `LIB_ID_CREATE` ones, with value `1 << 3`),
using a specific set of options (`--background --factory-startup -noaudio`),
and passing the .blend file from T80090 as argument.
October 1, 2020, 13:37 (GMT)
Fix (unrepported) utterly broken logic in readfile for Workspaces.

Remove the attempt to update the active layout pointers of each window
from whithin `direct_link_workspace`.

This piece of code was a nonsense for at least to critical reasons:
* Do not, never, ever, access data from another datablock within the
direct_link_... functions. Just don't. Don't try to be smart.
* Since it was trying (and failing) to update the active layout of every
window for every workspace, it was effectively setting those
`act_layout` pointers to NULL (remapping can only ever happen once,
trying to remap and already remapped new pointer is bound to fail in
any case).

Luckily (and funnily), this piece of code was actually harmless, since
setting the active layout would be overridden/redone later, in
`lib_link_windowmanager`, when updating their `workspace_hook` in
`lib_link_workspace_instance_hook`.

Note that the similar horror with `WorkSpaceDataRelation->parent` (which
points at a window) is kept for now, because that one is needed. Hope to
refactor it soon though.
October 1, 2020, 13:37 (GMT)
Property Search: Set expansion properly for child panels

Although I haven't seen this cause any visible errors, there is some
incorrect handling for setting panel expansion during search:
- Properly check if child panel is active first
- Don't stop traversal at headerless panels that could theoretically
have children
Revision 27e47dd by Joseph Eagar
October 1, 2020, 12:48 (GMT)
a few bug fixes
Revision 4c3b444 by Joseph Eagar
October 1, 2020, 12:00 (GMT)
it compiles
Revision 5111efd by Joseph Eagar
October 1, 2020, 10:20 (GMT)
Merge branch 'master' of git://git.blender.org/blender
Revision cd24c4b by Joseph Eagar
October 1, 2020, 10:20 (GMT)
prepare for merge
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, 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.
Revision 3559b8a by Joseph Eagar
September 30, 2020, 12:13 (GMT)
Merge branch 'master' into joeedh-trimesh-sculpt
Revision a62dd1e by Joseph Eagar
September 30, 2020, 11:39 (GMT)
Merge branch 'master' of git://git.blender.org/blender
Revision 5075082 by Joseph Eagar
September 30, 2020, 11:36 (GMT)
add these files
Revision db35853 by Joseph Eagar
September 30, 2020, 11:35 (GMT)
more trimesh stuff
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021