Blender Git Loki

Kaikki Blender Git kommitit.

Page: 295 / 8462

August 25, 2021, 15:49 (GMT)
Cycles X: some refinements for the make new Random Walk mode

* Make scattering radius more similar to the old one, for easier comparison
between modes and converting existing files.
* Change default subsurface mode to Random Walk in startup file.
* Fix incorrect clamping in OSL closure.
August 25, 2021, 15:44 (GMT)
Fix T90911: Move along axis does not display real distance units

Variable was wrongly set to 0.
Caused by {rB7192e57d63a5}.
August 25, 2021, 15:30 (GMT)
Cleanup and remove SEQ_ALL_BEGIN macro

We now use a for_each function with callback to iterate through all sequences in the scene.

This has the benefit that we now only loop over the sequences in the scene once.
Before we would loop over them twice and allocate memory to store temporary data.

The allocation of temporary data lead to unintentional memory leaks if the code used returns to exit out of the iteration loop.
The new for_each callback method doesn't allocate any temporary data and only iterates though all sequences once.

Reviewed By: Richard Antalik, Bastien Montagne

Differential Revision: https://developer.blender.org/D12278
August 25, 2021, 15:01 (GMT)
Fix crash cancelling render in middle of scene update

Particularly likely with preview renders. Detect cancel state after
scene update rather than using incomplete scene for render.
August 25, 2021, 14:55 (GMT)
Remove GArray, futher improvement
August 25, 2021, 14:01 (GMT)
Merge branch 'master' into asset-greasepencil
August 25, 2021, 14:00 (GMT)
Cleanup: else-after-return
August 25, 2021, 13:59 (GMT)
T90908: Reduce loading times when extracting thumbnails from Blendfiles.

Previously when loading an thumbnails for an asset the whole file was
read. Reason this was done was perhaps a future idea to load
all thumbnails inside a blendfile in a single go. This was never implemented
and currently unneeded disk and cpu cycles was spend with finding out what
preview to load.

This patch adds an early break when the thumbnail that the caller is
interested in has been found. This improves the thumbnail extraction
when looking into large files.

Reviewed By: mont29

Maniphest Tasks: T90908

Differential Revision: https://developer.blender.org/D12312
August 25, 2021, 13:43 (GMT)
FFMPEG: Fix building with older versions that need FFMPEG_USE_DURATION_WORKAROUND
August 25, 2021, 13:43 (GMT)
VSE: Flush audio encode after finishing video export

We didn't flush audio after encoding finished which lead to audio
packets being lost.

In addition to this the audio timestamps were wrong because we
incremented the current audio time before using it.

Reviewed By: Richard Antalik

Differential Revision: https://developer.blender.org/D11916
August 25, 2021, 13:38 (GMT)
EEVEE: LightGrid: Fix divide by zero leading to wrong world lighting

This integer divide by zero was evaluated to 0 on all platform but apple,
where it yields 1. The world lighting would then sample the 1 sample of the
first grid instead of its own sample.
Revision 5a0ec23 by Peter Kim (master)
August 25, 2021, 12:36 (GMT)
XR: Enable controller profile extensions

Enables all currently documented OpenXR controller profile
extensions (Reverb G2, Vive Cosmos, Huawei Controller) in order to
support bindings for more VR hardware.

This is necessary because, if these extensions are not enabled, the
OpenXR runtime will return an error when creating a binding with one
of these profiles.

Does not bring about any changes for users at the moment, since
default controller actions have not yet been exposed to users (will
be addressed with D10944, D10948, and D11271).
Revision 940ba74 by Peter Kim (master)
August 25, 2021, 11:59 (GMT)
XR: Improve "Invalid stage ref space" warning

Originally mentioned that absolute tracking was disabled, which is
wrong because absolute tracking (skipping application of eye offsets)
is always available, although it may not give the expected result of
persistent tracking origins across sessions if the stage space is
unavailable (hence the need for a warning).

Now, the warning makes no mention of absolute tracking, instead
informing the user that the local space fallback will be used and
that they should define tracking bounds via the XR runtime if they
wish to use the stage space.
Revision d6ace5a by Peter Kim (master)
August 25, 2021, 11:59 (GMT)
Fix: Crash on file read with active VR session

Add null check for runtime data since it could already have been
freed via wm_xr_exit() (called on file read) prior to the session
exit callback.

Also, fix potential memory leak by freeing session data in
wm_xr_runtime_data_free() instead of session exit callback.
Revision cb9c0aa by Peter Kim (master)
August 25, 2021, 11:57 (GMT)
Fix: XR action map memory leaks

This fixes two memory leaks related to XR action maps.

1. Freeing of action maps needs to be moved from wm_xr_exit() to
wm_xr_runtime_data_free() since the runtime may have already been
freed when calling wm_xr_exit().

2. Action bindings for action map items were not being freed. This
was mistakenly left out of e844e9e8f3bb since the patch needed to be
updated after d3d4be1db3a0.
Revision a34652d by Peter Kim (master)
August 25, 2021, 11:56 (GMT)
Fix: Incorrect declaration of XrActionMaps RNA

This fixes a mistake in the XrActionMaps RNA struct declaration.

Originally, the XrActionMaps struct SDNA was set as wmXrData to get
access to wmXrRuntimeData. However, this doesn't give a valid pointer
and the XrSessionState RNA pointer needs to be passed instead.

Since XrSessionState itself does not have SDNA, it is necessary to
pass the XrSessionState pointer to the XrActionMaps struct functions
(new(), new_from_actionmap(), ...) instead of simply using
RNA_def_struct_sdna().
August 25, 2021, 10:01 (GMT)
commit prior to small cleanup
August 25, 2021, 08:10 (GMT)
Cleanup: skip saving selection properties set in the keymap

Having settings such as "extend" saved between executions causes
keymaps that don't include this setting to remember the value
between execution.

No longer store this setting for selection operations & remove
redundant values from the key-maps, see: T90275.
August 25, 2021, 08:00 (GMT)
Cleanup: separate IMB_thumb_load_blend in multiple functions.
August 25, 2021, 08:00 (GMT)
Cleanup: Mentioning incorrect source file in comment.

Code mentions that ID_* were defined in DNA_ID.h but are actually defined
in DNA_ID_enums.h.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021