Blender Git Loki

Kaikki Blender Git kommitit.

Page: 303 / 8462

August 23, 2021, 07:34 (GMT)
Fix NLA action cannot be unlinked in certain cases

The poll for unlinking calls `nla_panel_context` without providing an
adt pointer, and there is a check for this pointer in
`nla_panel_context` leading to never returning true if it is not
provided. (this is fine if there are tracks already, poll would succeed
in this case, `nla_panel_context` goes a different code path then)

Same call to `nla_panel_context` is also done in the beginning of the
corresponding unlink exec function (but this time providing the pointer
because it is used later), so it makes sense to do the same thing in the
poll function. Equal check is also done in the panel poll function, so
now these are all in sync.

Part of T87681.

Maniphest Tasks: T87681

Differential Revision: https://developer.blender.org/D11041
August 23, 2021, 07:33 (GMT)
Fix T88498: 'Clear Parent' does not clear parent_bone

Clearing the parent from the UI using the X (or from python) clears the
`parsubstr` and set `partype` back to `PAROBJECT`.

Using the Clear Parent operator would leave the `parsubstr` (and thus
`parent_bone`) untouched even though this operator claims to "clear
parenting relationship completely" (it also removes parent deform
modifiers for example).

So now, also clear `parsubstr` and set back to `PAROBJECT` [which is
default].

Maniphest Tasks: T88498

Differential Revision: https://developer.blender.org/D11503
August 23, 2021, 07:33 (GMT)
Fix T89805: NLA crash without active track

Was reported for a file which does not have an active track set in
AnimData even though it was in strip twek mode (but this was accessed in
is_nlatrack_evaluatable()).

Root cause for this is not totally clear, but I assume the situation is
described as part T87681 (and is fixed in D11052).

This patch here just prevents the crash for files that are already in the
borked state.

Reviewers: sybren

Maniphest Tasks: T89805

Differential Revision: https://developer.blender.org/D12085
August 23, 2021, 07:32 (GMT)
BLI_math: Fix several division-by-zero cases.

Those were caused by various tools used on degenerate geometry, see
T79775.

Note that fixes are as low-level as possible, to ensure they cover as
much as possible of unreported issues too.

We still probably have many more of those hidden in BLI_math though.
August 23, 2021, 07:21 (GMT)
Fix T88998: GPencil not projecting to the most front surface

It was projecting from the stroke position.

The behavior has changed in {rB5400be9ffee2}.
August 23, 2021, 07:20 (GMT)
Geometry Nodes: Fix vector math project bug

Implementation is incorrect compared to Cycles/Eevee.

Reported by @DrDubosc in comments of T88922.

Differential Revision: https://developer.blender.org/D12029
August 23, 2021, 07:19 (GMT)
PyAPI: resolve build error with Python 3.10

Resolves T89931
August 23, 2021, 07:18 (GMT)
Fix T90493: Undo a knife-project operation crashes

The crash occurred calling because mesh_get_eval_final in edit-mode
freed all derived mesh data without tagging the object for updating.

However meshes in edit-mode weren't meant to be used as knife-project
source-data, adding support for multi object edit-mode caused this.
August 23, 2021, 07:18 (GMT)
Fix T88033: Python reference memory leaks for non main data-blocks

ID data-blocks that could be accessed from Python and weren't freed
using BKE_id_free_ex did not release the Python reference count.

Add BKE_libblock_free_data_py function to clear the Python reference
in this case.

Add asserts to ensure no Python reference is held in situations
when ID's are copied for internal use (not exposed through the RNA API),
to ensure these kinds of leaks don't go by unnoticed again.
August 23, 2021, 07:14 (GMT)
Fix T89241: 3D Text "Scale to Fit" wraps onto the second line

Disable wrapping when "scale to fit" is used, assert the error is
small so an invalid scale-to-fit value wont go by unnoticed.
August 23, 2021, 07:08 (GMT)
Fix memory leak in edit-mesh dissolve degenerate
August 23, 2021, 07:07 (GMT)
Fix T89306: GPencil selection doesn't work correctly with modifiers

The problem was introduced with Bezier modification because the selection code was using the original stroke and not the evaluated version.
August 23, 2021, 07:06 (GMT)
Fix T90791: Knife project leaks memory with curve/text cutter
August 23, 2021, 07:05 (GMT)
Cleanup: rename BKE_mesh_free -> BKE_mesh_free_data

It wasn't obvious this didn't free the memory of the mesh it's self
leading to memory leaks.
August 23, 2021, 06:54 (GMT)
Cleanup: accidentally included printf
August 23, 2021, 06:54 (GMT)
Fix memory leak with building springs in the cloth simulator

Error in 2788b0261cb7d33a2f6f2978ff4f55bb4987edae.
August 23, 2021, 06:26 (GMT)
Fix T90791: Knife project leaks memory with curve/text cutter
August 23, 2021, 06:24 (GMT)
Cleanup: rename BKE_mesh_free -> BKE_mesh_free_data

It wasn't obvious this didn't free the memory of the mesh it's self
leading to memory leaks.
August 23, 2021, 06:18 (GMT)
Fix memory leak in edit-mesh dissolve degenerate
August 23, 2021, 06:17 (GMT)
Fix T90719: Boost sources dowload address needed to be updated.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021