Blender Git Commits

Blender Git "master" branch commits.

Page: 274 / 5574

Revision c5d38a2 by Hans Goudey
May 13, 2021, 22:47 (GMT)
Functions: Expose set_all method for generic virtual arrays

This is very similar to rB5613c61275fe6 and rB0061150e4c90d, basically
just exposing a `VMutableArray` method to its generic counterpart. This
is quite important for curve point attributes to avoid a lookup for
every point when there are multiple splines.
Revision 88aee29 by Hans Goudey
May 13, 2021, 22:37 (GMT)
Cleanup: Clang format
Revision 2953732 by Scurest / Gaia Clary
May 13, 2021, 21:43 (GMT)
Collada import: connect Emission texture to Emission socket

An emission texture is currently connected to the Base Color socket. It should connect to the Emission socket, like a constant does.

Reviewed By: gaiaclary

Differential Revision: https://developer.blender.org/D10990
May 13, 2021, 21:07 (GMT)
Merge branch 'blender-v2.93-release'
May 13, 2021, 21:05 (GMT)
Fix T87360 Multi input links aren't placed correctly when created with python

link->multi_input_socket_index, which is used to calculate the links
position on the multi-input socket, was not set.
Now it is set to the sockets current link count.

Review: Jacques Lucke (JacquesLucke)
Differential Revision: https://developer.blender.org/D11082
May 13, 2021, 12:14 (GMT)
BLI: simplify supporting heterogeneous lookup for new types

Heterogeneous lookup is useful when constructing a key in a
map/set is relatively expensive (e.g. `std::string`). When doing
lookups in the map/set, one usually does not want to construct
the type to avoid overhead. Instead, heterogeneous lookup
allows for using a different type (such as `StringRef`) as key.

This change makes it easier to implement heterogeneous
lookup for custom types. Before, one had to specialize
`blender::DefaultHash`. Now, one just has to implement
a `static uint64_t hash_as(value)` on the type itself.
One still has to provide the equality operator in addition
to the hash function of course.
May 13, 2021, 11:45 (GMT)
Modifiers: allow usage of tbb

Before, any usage of tbb wrappers used in modifier code would
just fall back to the non-threaded non-tbb version.

We ran into this issue a couple of times in patches.
May 13, 2021, 11:42 (GMT)
Nodes: add utility method to get input/output of a DNode

This is a fairly common operation, so there should be a method
that does it to avoid unnecessary complexity at the caller site.
May 13, 2021, 11:39 (GMT)
BLI: support looking up a key stored in Map or VectorSet

Sometimes it is useful to find the key that compares equal
to a known key. Typically that happens when the key itself
has additional data attached that is not part of its hash.

Note that the returned key reference/pointer is const, because
the caller must not change the key in a way that changes its
hash or how it compares to other keys.
May 13, 2021, 11:23 (GMT)
Functions: simplify adding a single input to a multi-function

This is used by the upcoming new geometry nodes evaluator.
May 13, 2021, 11:20 (GMT)
BLI: add initial wrapper for tbb::enumerable_thread_specific

The wrapper is necessary to support building without TBB.
This class is used by the upcoming new evaluator for
geometry nodes.
May 13, 2021, 11:11 (GMT)
Nodes: ignore unavailable sockets in logically linked sockets iterator

Unavailable sockets should generally be ignored during evaluation.
They mainly exist because we don't have a better mechanism to turn
some sockets on/off depending on node parameters.

Currently, it is still possible that a link connects an available with an
unavailable socket. This link is not displayed in the ui and should
generally be ignored.
May 13, 2021, 11:06 (GMT)
Cleanup: inconsistent parameter name
May 13, 2021, 11:06 (GMT)
Cleanup: missing override
May 13, 2021, 11:06 (GMT)
Geometry Nodes: add mutex for node ui storage

Previously, multiple threads adding information to node ui storage
at the same time resulted in memory corruption. The lock prevents
that, but might potentially become a bottleneck in the future.
For now favour correctness over a potential performance bottleneck.
May 13, 2021, 10:58 (GMT)
BLI: add LinearAllocator.construct_array method

Previously, one could allocate an array, but not construct its
elements directly. This method just adds some convenience.
May 13, 2021, 02:44 (GMT)
Cleanup: use boolean argument
May 13, 2021, 02:44 (GMT)
Cleanup: clang format
May 13, 2021, 01:10 (GMT)
PyAPI Docs: Cleanup Formatting
May 13, 2021, 01:10 (GMT)
UI: Use term 'Preferences' instead of 'User Prefs'

'Preferences' is the term used elsewhere in Blender so this commit makes
the option more consistent.

In the future, the "default" target could be changed to something more
descriptive.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021