Blender Git Commits

Blender Git "master" branch commits.

Page: 384 / 5574

February 17, 2021, 14:25 (GMT)
Cleanup: make local vars const.
February 17, 2021, 14:22 (GMT)
Fix T85440: crash with displacement shaders and updating geometry in viewport

When primitive offsets change we need to rebuild or refit BVHs, however this
was also tagging other data as modified too late in the geometry update process.
Now ensure only the BVHs are updated.

Ref D10441
February 17, 2021, 13:38 (GMT)
Cleanup: Use 'pygpu_' prefix in the cpython GPU module

`py_` prefix can be confused with the Python's own API's.
February 17, 2021, 12:40 (GMT)
Cleanup: Fix typo error

February 17, 2021, 12:40 (GMT)
Fix T80862: Small stroke opacity modulation is best done in the fragment shader

To avoid anti-aliasing artifacts on GPencil strokes that have a size smaller than 1 the thickness
is clamped and the opacity reduced. This was done in vertex shader but this had the side effect
of causing strokes that go from large to small to fade across their lengths.

**Solution**

The opacity modulation has now been moved to the fragment shader as advised by Cl�ment Foucault.

The strokeThickness that was passed to the shader was clamped to prevent it from being too small so an additional
unclamped thickness has been passed to the fragment to calculate the opacity modulation. Alternatively I could have chosen
strokeThickness and clampedThickness but I decided against renaming the variables in the current code.


Reviewed By: fclem

Differential Revision: https://developer.blender.org/D10438
February 17, 2021, 12:17 (GMT)
Geometry Nodes: realize instances before deform modifier

This is a follow up commit for rB96da8e9ca302b8d879744.

Ref T85281.
February 17, 2021, 11:28 (GMT)
Geometry Nodes: realize instances before passing geometry to constructive mesh modifier

Previously, when the output of a Geometry Nodes modifier would
contain instances, those could not be accessed by other existing
modifiers (e.g. the Array modifier). That is because those modifiers
don't know about instances.

Upcoming commits will improve an this in two ways:
* Also realize instances before deform modifiers.
* Convert a point cloud in the geometry to mesh vertices so that
they can be accessed as well.

Note, making instances real can result in loosing some information
that we do not support in Geometry Nodes yet. That includes some
special builtin attributes like bevel weights.

Ref T85281.

Differential Revision: https://developer.blender.org/D10432
February 17, 2021, 11:13 (GMT)
Cycles: support accessing custom mesh attributes

This makes custom mesh attributes available in Cycles. Typically,
these attributes are generated by Geometry Nodes, but they can also
be created with a Python script.

* The `subdivision` code path is not yet supported.
* This does not make vertex weights and some other builtin attributes
available in Cycles, even though they are accesible in Geometry Nodes.
All attributes generated in Geometry Nodes should be accessible though.
* In some cases memory consumption could be removed by not storing all
attributes in floats. E.g. booleans and integer attributes for which
all values are within a certain range, could be stored in less than
4 bytes per element.

Differential Revision: https://developer.blender.org/D10210
February 17, 2021, 11:06 (GMT)
Cycles: detect when attributes have changed

This patch has originally been written by K�vin Dietrich, thanks!
It is part of D10210.

As Brecht noted in D10210, this might not handle all cases yet.
I better solution should come soonish.
Revision 17dddc9 by Wayde Moss
February 17, 2021, 06:07 (GMT)
Fix: NLA Blend Domain Enable All Typo

Introduced by my recent commit: rBc48360c2559a

Accidentally used 4 instead of `necs->length`.
Revision 2da0f3e by Hans Goudey
February 17, 2021, 06:01 (GMT)
Geometry Nodes: Support integer type in the Attribute Fill Node

This will be used by the material index attribute when it is added.
Revision 47a2697 by Hans Goudey
February 17, 2021, 05:39 (GMT)
Fix T85716: "Applied Modifier:" report hides more important message

Since "Applied Modifier" was always added last, it obscured more important
messages when using the shortcut to delete modifiers. The purpose of the
report when using the shortcut was to make it clear that something
happened. Since another report does that anyway, only display the
"Applied Modifier" report if the report list length hasn't changed.
Revision c48360c by Wayde Moss
February 17, 2021, 05:21 (GMT)
Fix: NLA Blends Non-Animated Upper Channel Values

Issue introduced by my commit: rB40b7929cc040

**User-level Problem**:
The issue resulted in a full-replace upper strip with only a Z location
channel full-replacing the XY location channels of the lower stack.
replaced to default. The expected behavior is that only the Z location
channel is affected.

**Technical-level Problem**:
Before the problematic commit, fcurves were blended as they were read.
So only existing animated channels would blend. My recent commit
changed the process to read all fcurve values into an isolated
upper_snapshot then blend with the lower stack. There is no data stored
to know whether the upper snapshot channel values were sampled from
fcurves or were default values. Only those sampled from fcurves should
be blended.

**Solution**:
Added a `blend_domain` bitmask member to NlaEvalChannelSnapshot.
The blending function only blends values within the `blend_domain`.
Sampled fcurve values are now marked as within the `blend_domain`.
We also now always copy the lower snapshot to the result snapshot which
only matters when they aren't the same. Currently, it's always the same
so the change is more for future unseen cases.

Reviewed By: sybren, #animation_rigging

Differential Revision: https://developer.blender.org/D10339
Revision 585db47 by Hans Goudey
February 17, 2021, 05:02 (GMT)
Cleanup: Return bool instead of int
February 17, 2021, 04:36 (GMT)
Cleanup: use edituv prefix for stretch area/angle data
February 17, 2021, 04:19 (GMT)
Merge branch 'blender-v2.92-release'
February 17, 2021, 04:12 (GMT)
Fix T85680: Crash displaying UV stretch/area with modifiers

This uses the same logic as drawing UV's,
where non-bmesh defaults to mesh.
February 17, 2021, 04:04 (GMT)
Cleanup: spelling
February 17, 2021, 03:50 (GMT)
Cleanup: remove commented function
February 17, 2021, 03:50 (GMT)
Cleanup: pass scene as const
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021