Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 321 / 5574

April 1, 2021, 10:35 (GMT)
Fix T50103: Transform not working if scale is zero

If any axis of the scale of an object was zero, transforming failed.
This was because `td->smtx` was set to a zero matrix.

orthogonalize_m3_zero_axes is used to fill in the zeroed axes.

Thanks to @filedescriptor for the initial fix: D10869.
April 1, 2021, 10:34 (GMT)
BLI_math: add orthogonalize_m#_zero_axes

Expose a this function to initialize any zeroed axes
to an orthogonal vector based on other non-zeroed axes.

This functionality already existed for `invert_m#_m#_safe_ortho`,
expose as a public function as it's useful to be able to fill in zeroed
axes of transformation matrices since they may be used in matrix
multiplication which would create degenerate matrices.
Revision b30cc70 by Nikita Sirgienko / Brecht Van Lommel
April 1, 2021, 10:31 (GMT)
Fix Cycles build error with "make developer" on some CPUs

The combination of building unit tests and WITH_CYCLES_NATIVE_ONLY did not
correctly detect when AVX/AVX2 support is available.

Differential Revision: https://developer.blender.org/D8201
April 1, 2021, 10:31 (GMT)
Fix: incorrect versioning code for lights properties

Due to T64791 we must still use the old Lamp name rather than Light, work
around that for now.
April 1, 2021, 10:31 (GMT)
Cycles: add a spread setting for area lights

This simulates the effect of a honeycomb or grid placed in front of a softbox.
In practice, it works by attenuating rays coming off-angle as a function of the
provided spread angle parameter.

Setting the parameter to 180 degrees poses no restrictions to the rays, making
the light behave the same way as before this patch.

The total light power is normalized based on the spread angle, so that the
light strength remains the same.

Differential Revision: https://developer.blender.org/D10594
April 1, 2021, 10:31 (GMT)
Cycles: light spread importance sampling for rectangular area lights

Compute a subset of the area light that actually affects the shading point
and only samples points within that.

It's not perfect as the real subset is a circle instead of a rectangle, and
the attenuation is not accounted for. However it massively reduces noise for
shading points near the area light anyway.

Ellipse shaped area lights do not have this importance sampling, but do not
have solid angle importance sampling either.

Ref D10594
April 1, 2021, 10:28 (GMT)
Fix T87056: Segfault in GPU_batch_clear() involing Lattice evaluation

Fix a segfault by setting the `batch_cache` pointer to `NULL` when copying
a Lattice. That way the copy can get its own batch cache when needed,
preventing a use-after-free.
April 1, 2021, 09:32 (GMT)
Libmv: Add clang-format for third party sources

Got ignored in the initial commit of clang-format support to the Libmv.
April 1, 2021, 09:30 (GMT)
Fix condition for ffmpeg seek workaround

This condition was in contradiction with comment for function
`ffmpeg_generic_seek_workaround()`.

I have noticed, that formats that seeked well used this workaround.
Problem was that I misunderstood code from `av_seek_frame()` - formats
with `read_seek()` function stil don't use generic seeking method.
This is defined in `seek_frame_internal()`
Revision 546fa9a by Falk David
April 1, 2021, 09:04 (GMT)
Fix T87037: Add tooltip for "Paste Flipped"

The "Paste Flipped" operator was missing its own tooltip.

This patch adds the tooltip by implementing the `get_description` callback for
`GRAPH_OT_paste` and `ACTION_OT_paste`.

Reviewed By: sybren

Maniphest Tasks: T87037

Differential Revision: https://developer.blender.org/D10859
April 1, 2021, 08:45 (GMT)
Fix freezed proxy frames

`ffmpeg_generic_seek_workaround()` applied negative offset for seqrched
packet timestamp, but proxies always start from 0 and timestamp can be
negative.

Limit timestamp value to 0, because `av_seek_frame()` doesn't accept
negative timestamps and returns with error. This prevents seeking from
working correctly.
April 1, 2021, 06:42 (GMT)
Fix T86331: Preferences menu inaccessible until window resize

The RGN_TYPE_EXECUTE region was zero height - with the "Load & Save"
button drawing outside of those bounds - so it didn't respond to events.

This is because the region started off this size and does not change
with simply adding the buttons. Although it has RGN_FLAG_DYNAMIC_SIZE,
delayed reinit of regions is only currently supported on headers.

This gives the execute region an initial (minimum) vertical size but
also makes the region **hidden** by default.

- Showing Prefs as an editor among others it will show the header
but not the execute region.

- Showing the Prefs in a popup window, hides the header region
and shows the execute region.

Ref D10636
April 1, 2021, 06:16 (GMT)
Cleanup: Split up methods.
April 1, 2021, 06:16 (GMT)
Cleanup: method naming.
April 1, 2021, 00:18 (GMT)
Cleanup: clang format
April 1, 2021, 00:18 (GMT)
Clang Format: bump the minimum version to 8

Make use of `StatementMacros` so Python structs are formatted correctly.

The comment about STRINGIFY doesn't seem to be valid anymore,
so this has been left out.
Revision a641e08 by Hans Goudey
March 31, 2021, 23:07 (GMT)
Cleanup: Use const arguments in curve code
Revision 1a100d2 by Ankit Meel
March 31, 2021, 19:43 (GMT)
Cleanup/CMake: tweak messages in platform_apple
Revision f061de9 by Ankit Meel
March 31, 2021, 19:42 (GMT)
Cleanup/CMake: warning to status to reduce noise

Correction in e5f0d176d4cfa020bfb4de78086007dcfd02e8f9
Revision 910469e by Hans Goudey
March 31, 2021, 16:37 (GMT)
Cleanup: Remove remaining unused code for DispList "bevel_split"

This was added in rB93aeb6b318a7, last changed in rB8f0a44a5d55d,
and removed in rB51b796ff1528. I assume it was a way for curves to
have split edges at corners. As far as I can tell it only ever worked
in Blender Internal, and that has been gone for years.

Another possible route here would be restoring this functionality,
but it's generally preferrable to reduce complexity in this
area of curve code than adding it back, especially in the context
of other improvements planned related to curves in geometry nodes.

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