Blender Git Commits

Blender Git "master" branch commits.

Page: 564 / 5574

September 23, 2020, 05:26 (GMT)
Fix T68024: Crash from missing original-index mesh layer

Constructive modifiers were not initializing an original index layer
in the case a previous deform modifier created 'mesh_final'.

This happened in the case of multiple deform modifiers that deform along
normals, as requesting normals caused the final mesh to be created.

Ensure mapping data is created in the case
only non-constructive modifiers have run.
September 23, 2020, 05:26 (GMT)
Cleanup: re-order constructive modifier checks

Minor changes to simplify fix (coming next), no functional changes.
September 23, 2020, 03:06 (GMT)
Fix outliner collection icon in light theme

Ensure the theme colors are used for the collection icon when there are
no color tags present, otherwise it draws completely black.
Revision 358a8e0 by Hans Goudey
September 22, 2020, 18:36 (GMT)
Cleanup: Quiet unused variables warning
September 22, 2020, 18:11 (GMT)
GPencil: Improve default brush draw mode

Mainly a UI adjustment, no functional changes

To have the default mode in the advanced panel as separated option is not the best solution.

Now, there is a pin option and when it is enabled, the brush keeps this mode.

Differential Revision: https://developer.blender.org/D8974
September 22, 2020, 14:36 (GMT)
Cleanup: use float3 instead of float4 for shadow, since w is never used

Contributed by pembem22.

Differential Revision: https://developer.blender.org/D8947
September 22, 2020, 14:28 (GMT)
Fix Cycles SSS incorrect rendering of zero radius in green channel

Thanks to pembem22 for finding the problem.

Ref D8949
Revision 3873a0f by Alex Strand / Brecht Van Lommel
September 22, 2020, 14:07 (GMT)
Fix COLLADA failing to export HDR emission strength

HDR is not supported by COLLADA, so clamp to export the closest approximation.

Differential Revision: https://developer.blender.org/D8955
September 22, 2020, 14:03 (GMT)
CMake: Enable WITH_POTRACE by default

All platforms have landed the libs, this can be on
by default now.
September 22, 2020, 14:00 (GMT)
MeshAnalysis: Optimize the detection of intersecting geometry

For the self overlap result, each intersection pair does not need to
be tested twice.
September 22, 2020, 14:00 (GMT)
Fix T80444: Triangle-Triangle intersection regression in 2.90

The problem is due to lack of precision with small and coplanar triangles.

Also, triangles that have vertices with the same coordinate are at the
threshold of the intersection.

We could add an epsilon to consider the minimum distance for intersection.

But that would add a lot of overhead to the code.

The solution used is to increase precision using doubles.
Revision cbae82b by Hans Goudey
September 22, 2020, 13:48 (GMT)
Fix T78823: Slash in custom property name does not work

Some characters: `'`, `"`, and ``, can cause problems with RNA paths.
Instead of using more complicated handling to deal with those cases,
we can just prevent these characters from being used in custom property
names.

This commit checks for these characters to `idp_try_read_name`, where
other checks like length are already done.

Differential Revision: https://developer.blender.org/D8839
September 22, 2020, 12:50 (GMT)
Cycles: add update flags to Node and SocketType

Those flags are meant for detecting which socket has changed, so in the
future we can have more granular updates.

`Node` now stores an `update_flags` member which is modified every time
a socket is changed though `Node::set`. The flags are or-able bits
stored in `SocketType` instances. Each `SocketType` stores a unique bit
out of 64, for the 64 bits of an uint64_t; the bit
corresponds to the index of the socket in the `Node`'s sockets array +
1, so the socket at index 5 will have the 6th bit set as its flag. This
limits us to 64 sockets per Node, which should be plenty for the current
set of `Nodes` that we have.

This does not change the behavior of other parts of Cycles.

This is part of T79131.

Reviewed By: brecht

Maniphest Tasks: T79131

Differential Revision: https://developer.blender.org/D8644
September 22, 2020, 12:02 (GMT)
Refactor for effector / collider velocities

This refactor is in response to an unreported bug in which overlapping, moving colliders produced an unstable simulation.

Things that change apart from cleanup through this refactor:
- Effector objects with no velocities (either non-animated or animated but non-moving object) will explicitly set zero velocities in their flow bounding box.
- When applying object velocities to the global grid, they will now be accumulated per cell (add and not set velocities). Later they will be averaged with the object count at any cell.
September 22, 2020, 12:02 (GMT)
Fluid: Fix for script export (standalone mode)

The OpenVDB update added a load() function. This function clashes with a helper IO function (only used when exporting and running the simulation externally) that was also named load().
September 22, 2020, 12:02 (GMT)
Fluid: Refactor for initial velocities

Removed invel MAC grid since it is sufficient to use the cell centered vec3 representation. When setting initial velocities these will be interpolated by the setter functions.
Revision b17cca6 by Jeroen Bakker
September 22, 2020, 11:52 (GMT)
Fix T81026: Image Editor: Alpha (like Bloom) not showing properly

With the new image editor drawing there were was some mutual exclusive
functionality. When rendering the alpha was shown correctly or the pure
emissive colors were shown correctly, but never both. The cause of this
is that the image_gpu did not used the correct alpha mode when generating
gpu textures for non-images (render results, compositors viewer)

The implementation always checked the alpha_mode. Alpha mode is an
attribute for images, but aren't set for non images. This patch adds
a more detailed check to ensure that the gpu texture is premultiplied.

The issue has been tested using several bug report files and production
files.

Reviewed By: Brecht van Lommel

Differential Revision: https://developer.blender.org/D8978
September 22, 2020, 09:17 (GMT)
Fix T81002: Images drawn with the Python gpu module no longer draw on top in the Image Editor

Since {D8234} the image editor is drawn using a depth buffer.
When using `draw_texture_2d` the image is drawn using the 2D_IMAGE
shader. inside the vertex buffer the image was pushed to the background.
This was introduced by {648924333234} what seems to be out dated as we
have done several overhauls in this area. (workbench refactor, overlay
engine refactor, color management pipeline).

This patch removes the pushing of the image to the background.
September 22, 2020, 08:43 (GMT)
Fix T80943: return early when field to visualize is NULL
September 22, 2020, 08:38 (GMT)
Fix T80915: Image editor only displays the first frame during 'Viewport render animation'

During viewport render animation the gpu textures weren't tagged as
invalid. As the image uv editor now draws the gpu texture only the first
was shown as it wasn't refreshed with the actual image data.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021