Blender Git Loki

Kaikki Blender Git kommitit.

Page: 1252 / 8462

Revision 3873a0f by Alex Strand / Brecht Van Lommel (master)
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 (master)
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, 13:27 (GMT)
avoid reopening the archive at every frame
September 22, 2020, 12:54 (GMT)
Merge branch 'master' into cycles_procedural_api
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:37 (GMT)
LineArt: Vector 2D intersection typo fix.
September 22, 2020, 12:30 (GMT)
LineArt: Vertical camera FOV improper scale.
September 22, 2020, 12:13 (GMT)
use the Node::set API to set the Mesh data from another Mesh in the
Blender exporter
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 (master)
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.
September 22, 2020, 08:33 (GMT)
Cleanup in style from previous commit.

Forgot that arc land also did the pus ot originh.
September 22, 2020, 08:30 (GMT)
Fix T80859: Thread safe pixeldata concersion from float to uchar and v.v.

I created a bugreport T80859 earlier.

The problem is in the file source/blender/editors/sculpt_paint/paint_image_proj.c (line numbers against commit d376aea61)

at the lines 5309 and 5320 the functions `IMB_rect_from_float(...)` and `IMB_float_from_rect(...)` are called from threaded code on a shared ibuf.
However, ps->reproject_ibuf is shared between threads, so this is not thread-safe.
This is a race condition and leads to wrong output when projecting float data onto a uchar texture or vice versa on a multithreaded system.
The checks on line 5308 and 5319 are already a race condition.

I created this patch which fixes the problem , but I'm not sure if I'm overlooking something.
This makes sure reproject_ibuf contains the correct formats *before* the threadpool is started.

I replaced the original location of the conversions with BLI_asserts(). That may be overkill?

Reviewed By: #sculpt_paint_texture, mont29

Maniphest Tasks: T80859

Differential Revision: https://developer.blender.org/D8936
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021