Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 879 / 5574

March 6, 2020, 11:52 (GMT)
Cleanup: ShapeKey: Move to IDTypeInfo and remove unused BKE API.
March 6, 2020, 11:33 (GMT)
Nodes: Support storing socket link limits in bNodeSocketType

Currently the link limit of sockets is stored in bNodeSocket->limit.
This allows for a lot of flexibility, but is also very redundant.
In every case I've had to deal with so far, it would have "more correct"
to set the link limit per socket type and not per socket. I did not enforce
this constraint yet, because the link limit is exposed in the Python API,
which I did not want to break here.

In the future it might even make sense to only support only three kinds of link limits:
a) no links, b) at most one link, c) an arbitrary number links links. The other link
limits usually don't work well with tools (e.g. which link should be removed when a new
one is connected?) and is not used in practice. However, that is for another day.

Eventually, I would like to get rid of bNodeSocket->limit completely and replace it
either with fixed link limits or a callback in bNodeSocketType.

This patch consists of three parts:

**1. Support defining link limit in socket type**
This introduces a new `nodeSocketLinkLimit` function that serves as an indirection to
hide where the link limit of a socket is defined.

**2. Define link limits for builtin sockets on socket type**
Data sockets: one input, many outputs
Virtual sockets: one input, one output
Undefined sockets: many inputs, many outputs (to avoid that links are removed when the type of the socket is not known)

**3. Remove `bNodeSocketTemplate->limit`**
This wasn't used anymore after the second commit. Removing it simplifies socket definitions
in hundreds of places and removes a lot of redundancy.

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

Reviewers: brecht
March 6, 2020, 11:32 (GMT)
CodeCleanup: move include statements before extern "C"

Mistake on recent changes that would fail when used in CPP.
March 6, 2020, 11:29 (GMT)
Fix memory leak in the colorio fallback implementation.

We would previously not store the transforms that were added to the
group transform node. This would lead to pointer to allocated memory
being lost and not freed.
March 6, 2020, 11:26 (GMT)
Fluid: Added missing UI options for effector objects

UI was missing some of the new functionality introduced in a5c4a44df67e.
March 6, 2020, 11:23 (GMT)
CodeCleanup: Use eDrawType

This patch will make use of the eDrawType where it was used as a
variable or parameter name. The eObjectDrawType was renamed to eDrawType
as it is also used by `View3DShading.type`.
March 6, 2020, 11:19 (GMT)
Cleanup: move camera, lights, world to IDTypeInfo
March 6, 2020, 11:11 (GMT)
CodeCleanup: Added enums to opengl render functions

Motivation the functions get 3 different kind of flag parameters (ImBuf,
DrawType, OffscreenRendering) the naming of the flags were not clear,
leading to mistakes and unnecessary time spend debugging.
March 6, 2020, 10:59 (GMT)
Cleanup: remove MLOOPUV_EDGESEL

This was not set anywhere, code relies on MLOOPUV_VERTSEL everywhere.

BMLoopUV.select_edge was never returning True and wasnt updating uv
select state when set manually.

Afaict, there were no official Addons using this from python.

Resolves T65836

Maniphest Tasks: T65836

Differential Revision: https://developer.blender.org/D6772
Revision c723179 by Julian Eisel
March 6, 2020, 10:43 (GMT)
Attempt to fix build errors on macOS

Mistake in 5be0e3430d13
March 6, 2020, 10:36 (GMT)
Animation: improved error handling when adding/deleting keyframes

There are two ways in which adding/deleting keyframes can fail, but only
one of those was handled. The other would be shown as a successful
add/delete of -2 keyframes.
March 6, 2020, 10:36 (GMT)
Cleanup: Animation, renamed and clarified 'success' variable

The `ANIM_apply_keyingset()` returns a value that indicates the number of
changed channels (if nonnegative) or an error state (negative). In the
places where the return value was actually used, this value was stored in
a badly named variable.
March 6, 2020, 10:27 (GMT)
Cleanup: Library: Move to IDTypeInfo, and remove unused BKE API.
March 6, 2020, 10:27 (GMT)
Cleanup: Object: remove unused BKE API.
March 6, 2020, 10:27 (GMT)
Cleanup: Scene: New IDTypeInfo, and remove unused API from BKE.
March 6, 2020, 10:05 (GMT)
Fix T73254: Drivers with the object.dimension variable are not updated

This fixes an issue where drivers using `object.dimension` only add a dependency on `GEOMETRY` to the depsgraph, whereas they should also depend on `TRANSFORM`.

This patch adds a new no-op operation that depends on the geometry and transform components to the Parameters component.

An alternative implementation would be to have `RNANodeQuery::construct_node_identifier` return multiple node identifiers. However, this would spread throughout the depsgraph code and unnecessarily force many other functions to either return or handle multiple nodes where in 99.999% of the time a single node would suffice.

The new `DIMENSIONS` node is added for each object. An upcoming patch will go over all no-op operation nodes and remove them from the depsgraph. Since this is a more dangerous operation, it'll be reviewed separately.

Differential Revision: https://developer.blender.org/D7031
Revision abd33a3 by Sebastián Barschkis
March 6, 2020, 10:04 (GMT)
Fluid: Cleanup naming for emmission bounding box

Since the bounding boxes are now also being used for effector objects, there needs to be a better name for them. Instead of calling them EmissionMap, which caters only to emission objects, they will now be called FluidObjectBB.
March 6, 2020, 10:02 (GMT)
Keymap: ignore repeat events for transform actions

Resolves T54297
March 6, 2020, 09:28 (GMT)
CodeCleanup: eevee_materials Use Struct Assignments
March 6, 2020, 08:47 (GMT)
Cleanup: typo in function name

contect -> context
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021