Blender Git Commits

Blender Git "master" branch commits.

Page: 279 / 5574

Revision d800470 by YimingWu
May 10, 2021, 01:15 (GMT)
LineArt: Custom UI for adding GP object.

This allows extra options (in-front and stroke order) to be shown when adding line art kind of grease pencil object.

Reviewed by: Antonio Vazquez (antoniov)

Diff: https://developer.blender.org/D11130
Revision f694321 by Hans Goudey
May 9, 2021, 06:33 (GMT)
Fix: Curve resample duplicates last point for cyclic splines

The last point of the output was at the same location as the
first point of a cyclic spline. The fix is simple, just account for
the cyclic when choosing the sample edge length, and don't
hard code the last sample.
Revision 7029cc2 by Hans Goudey
May 9, 2021, 06:13 (GMT)
Fix T88126: Curve resample crash for single point input

The spline `length` function assumed that the curve always had evaluated
edges. That is clearly false. This commit adds a check to `length` and a
special case for a single point in the curve resample node.
Revision 518c5ce by Hans Goudey
May 9, 2021, 04:57 (GMT)
Geometry Nodes: Improve point instance node performance

This commit uses two changes to improve the performance of the point
instance node.

**Prevent Reallocations**
At 64 bytes, the transform matrix for every instance is rather large,
so reallocating the vector as it grows can become a performance bottle-
neck. This commit reserves memory for the instances that will be added
to prevent unecessary reallocations as the instance vector grows.

In a test with 4 million instances of 3 objects in a collection, the
node was about 40% faster, from 370ms to 270ms for the node.

**Parallelization**
Currently the instances are added by appending to a vector. By changing
this slightly to fill indices instead, we can parallelize the operation
so that multiple threads can fill data at the same time. Tested on a
Ryzen 3700x, this reduced the runtime from the above 270ms to 44ms
average, bringing the total speedup to ~8x.

Note that displaying the instances in the viewport is still much slower
than the calculations in node, this change doesn't affect that.
May 8, 2021, 23:52 (GMT)
Merge branch 'blender-v2.93-release'
May 8, 2021, 23:52 (GMT)
GPencil: Sort Line Art modifier alphabetically
May 8, 2021, 23:51 (GMT)
GPencil: Name Scene Line Art objects "Line Art"

Matching Object and Collection line art type objects.
Revision 9569a52 by Hans Goudey
May 8, 2021, 19:53 (GMT)
Geometry Nodes: Refactor point instance node

This patch refactors the instance component to make use of the earlier
refactoring in rB4599cea15dcf. Now we don't have to build an array of
instance references the size of the point domain, and we can gather the
possible instances only once and use the same vector for all component
types. Generally the node should be a bit faster and use less memory.

The logic is moved around a bit, especially the hashing of the ID
attribute to pick from the instance list, but the result is unchanged.

Differential Revision: https://developer.blender.org/D11203
May 8, 2021, 12:54 (GMT)
Cleanup: remove use of persistent data handles in geometry nodes

Those were mostly just left over from previous work on particle nodes.
They solved the problem of keeping a reference to an object over
multiple frames and in a cache. Currently, we do not have this problem
in geometry nodes, so we can also remove this layer of complexity
for now.
May 8, 2021, 06:13 (GMT)
Cleanup: comment PlayAnim struct members
May 8, 2021, 06:13 (GMT)
Cleanup: remove unused turbo struct member from PlayAnim

This was never used (since 2.25 at least).
May 8, 2021, 06:13 (GMT)
Cleanup: correct PlayState.stopped state which was inverted
May 8, 2021, 06:12 (GMT)
Merge branch 'blender-v2.93-release'
May 8, 2021, 06:10 (GMT)
Fix PlayAnim cache size increasing when playing multiple animations

Error in 0499dbc5c16fe6b276da81d65cade4f5da92a308
May 8, 2021, 04:59 (GMT)
Merge branch 'blender-v2.93-release'
May 8, 2021, 04:32 (GMT)
Fix PlayAnim X/Y flipping

This functionality was missed in recent GLSL drawing update
fd3e44492e7606a741a6d2c42b31687598c7d09a.
Revision e46b9de by Hans Goudey
May 7, 2021, 23:16 (GMT)
Fix: Curve to mesh node assert when last profile segment is vector

We need to always add a single point to the last cyclic segment that
completes the loop, because that includes the starting point of the
evaluated edge. The existing code forgot about that point.
Revision 3185084 by Hans Goudey
May 7, 2021, 20:37 (GMT)
Geometry Noes: Curve Resample Node

This node generates a naturally parametarized (even length edge) poly
spline version of every spline in the input. There are two modes,
"Count", and "Length". These are similar to the same options for the
line primitive node in end points mode.

I implemented this instead of a "Sample Points" node, because for this
operation it's trivial to keep the result as a curve, which is nice
since it increases flexibility, and because it can make instancing
simpler, i.e. using the transforms of each evaluated point rather than
requiring the construction of a "rotation" attribute.

Differential Revision: https://developer.blender.org/D11173
May 7, 2021, 16:27 (GMT)
GPencil: New Append operators

Now it's possible to append materials of one grease pencil object into another one. The operator allows active material or all materials.

Also, the Layer Copy To Object has been renamed to Layer Append to Object to keep consistency and now allows to append all layers at once.
May 7, 2021, 15:22 (GMT)
Cleanup: Fix deinterlace code block style
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021