Blender Git Commits

Blender Git "master" branch commits.

Page: 307 / 5574

April 17, 2021, 17:23 (GMT)
Merge branch 'blender-v2.93-release'
April 17, 2021, 17:19 (GMT)
Cleanup: quiet compiler warning on macos
April 17, 2021, 17:06 (GMT)
BLI: add Vector.append_as method

This method is similar to `std::vector::emblace_back` in that it constructs
the new object inplace in the vector, removing the need for a move.

The `_as` suffix is consistent with similar behavior in Map and Set data structures.
April 17, 2021, 17:06 (GMT)
BLI: support multiple parameters in Stack.push_as
April 17, 2021, 17:06 (GMT)
BLI: add unit tests for recently added methods
April 17, 2021, 16:52 (GMT)
Fix wrong logic used in 'ED_view3d_depth_read_cached'

It is important to limit the pixels read on `BLI_array_iter_spiral_square`.

Fortunately `ED_view3d_depth_read_cached` was not being called with a
`margin` parameter.

Wrong logic introduced in rB44c76e4ce310.
April 17, 2021, 16:51 (GMT)
Fix wrong logic used in 'ED_view3d_depth_read_cached'

It is important to limit the pixels read on `BLI_array_iter_spiral_square`.

Fortunately `ED_view3d_depth_read_cached` was not being called with a
`margin` parameter.

Wrong logic introduced in rB44c76e4ce310.
April 17, 2021, 16:39 (GMT)
BLI: support multiple arguments for value in *_as methods of Map

This allows us to build more complex values in-place in the map.
Before those values had to be build separately and then moved into the map.

Existing calls to the Map API remain unchanged.
April 17, 2021, 14:41 (GMT)
Geometry Nodes: use virtual arrays in internal attribute api

A virtual array is a data structure that is similar to a normal array
in that its elements can be accessed by an index. However, a virtual
array does not have to be a contiguous array internally. Instead, its
elements can be layed out arbitrarily while element access happens
through a virtual function call. However, the virtual array data
structures are designed so that the virtual function call can be avoided
in cases where it could become a bottleneck.

Most commonly, a virtual array is backed by an actual array/span or
is a single value internally, that is the same for every index.
Besides those, there are many more specialized virtual arrays like the
ones that provides vertex positions based on the `MVert` struct or
vertex group weights.

Not all attributes used by geometry nodes are stored in simple contiguous
arrays. To provide uniform access to all kinds of attributes, the attribute
API has to provide virtual array functionality that hides the implementation
details of attributes.

Before this refactor, the attribute API provided its own virtual array
implementation as part of the `ReadAttribute` and `WriteAttribute` types.
That resulted in unnecessary code duplication with the virtual array system.
Even worse, it bound many algorithms used by geometry nodes to the specifics
of the attribute API, even though they could also use different data sources
(such as data from sockets, default values, later results of expressions, ...).

This refactor removes the `ReadAttribute` and `WriteAttribute` types and
replaces them with `GVArray` and `GVMutableArray` respectively. The `GV`
stands for "generic virtual". The "generic" means that the data type contained
in those virtual arrays is only known at run-time. There are the corresponding
statically typed types `VArray<T>` and `VMutableArray<T>` as well.

No regressions are expected from this refactor. It does come with one
improvement for users. The attribute API can convert the data type
on write now. This is especially useful when writing to builtin attributes
like `material_index` with e.g. the Attribute Math node (which usually
just writes to float attributes, while `material_index` is an integer attribute).

Differential Revision: https://developer.blender.org/D10994
April 17, 2021, 13:40 (GMT)
Merge branch 'blender-v2.93-release'
April 17, 2021, 13:38 (GMT)
Fix T87321: GPencil Arrange strokes not consistent with industry standards

Now if one stroke in the extremes of the stack is selected, other strokes are moved.

Reviewed By: pepeland, Dantti

Maniphest Tasks: T87321

Differential Revision: https://developer.blender.org/D10997
April 17, 2021, 13:13 (GMT)
Functions: extend virtual array functionality

This adds support for mutable virtual arrays and provides many utilities
for creating virtual arrays for various kinds of data. This commit is
preparation for D10994.
April 16, 2021, 17:44 (GMT)
Snap Gizmo: Improve event comparison code

Better distinction between modifier key events and mouse position events.

No functional changes.
Revision fc37b26 by Hans Goudey
April 16, 2021, 16:42 (GMT)
Merge branch 'blender-v2.93-release'
Revision b2a0f69 by Hans Goudey
April 16, 2021, 16:41 (GMT)
Fix T87555: Incorrect view transform default in startup file

This was another error in rBac90c8a7743f. It turns out it's quite
important to use a full build to save the file, which I didn't do then.
April 16, 2021, 16:00 (GMT)
Merge branch 'blender-v2.93-release'
April 16, 2021, 16:00 (GMT)
GPencil: Remove Grease Pencil menu options in UV editor

Differential Revision: https://developer.blender.org/D10993
April 16, 2021, 15:44 (GMT)
Merge branch 'blender-v2.93-release'
April 16, 2021, 15:42 (GMT)
Fix T87010: VSE: adding strips crashes in certain files

Caused by {rB571362642201} where versioning code for new sequencer tool
settings was only done for scenes already having sequencer scene->ed.

If scene->ed was not present, sequencer tool settings were never
initalized for this scene [if the VSE was then used later], leading to
crashes in some places.

Now just use the versioning code to initalize sequencer tool settings
for all scenes not having them yet.

Maniphest Tasks: T87010

Differential Revision: https://developer.blender.org/D10996
April 16, 2021, 15:32 (GMT)
Merge branch 'blender-v2.93-release'
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021