Blender Git Commits

Blender Git "soc-2021-porting-modifiers-to-nodes-decimate" branch commits.

Page: 3 / 18

July 30, 2021, 14:56 (GMT)
Regression Testing: Running tests based on blend files

Runs tests based on blend files with minimum python interaction.
Developed as part of GSoC 2021 - Regression Testing of Geometry Nodes.
Earlier, tests were built from scratch by adding a modifier/operation
from the Python API.
Now, tests can also be created inside blender and are compared using
Python script.

Features: Automatically adding expected object if it doesn't exist.
This patch adds tests for the following Geometry Nodes category:
* Curves
* Geometry
* Mesh
* Points

The implemented UML diagram for refactoring of mesh test framework.
{F10225906}

Technical Changes:
SpecMeshTest: It adds the modifier/operation based on the Spec provided.
BlendFileTest: It applies already existing modifier/operation from the blend file.

Test folders hierarchy with tests. This folder should be extracted to `libtestsmodeling`
{F10240651}
Note: The `geometry_nodes` folder might lie under another `geometry_nodes` folder while extracting, please double check. Use the inner-most one.
The hierarchy should be:
-`libtestsmodelinggeometry_nodesmesh`
-`libtestsmodelinggeometry_nodespoints`
and so on.

* From `ctest` the tests should be run as `ctest -R geo_node -C [Configuration]` on Windows.
* Each single test can be run with its entire name e..g `ctest -R geo_node_geometry_join_geometry`.(just an example). Run `ctest -N -R geo_node` to see all tests.
* From blender, the tests can be run `blender -b pathtoblendfile --python pathtogeo_node_test.py`

Reviewed By: zazizizou, JacquesLucke

Differential Revision: https://developer.blender.org/D11611
July 30, 2021, 14:56 (GMT)
Remove the code in `BKE_collection_move` to preserve LayerCollection flags.

This code was actually buggy (forcefully re-enabling excluded layers in some
cases).

Further more, it should not be needed now that layerCollection resync code
reuses as much as possible existing layers instead of deleting and
re-creating them all the time.

Differential Revision: https://developer.blender.org/D12016
July 30, 2021, 14:56 (GMT)
Cleanup: use PyC_AsArray_FAST function where possible

Oversight in 2453dc1b0ecad21a84b45e8c900a16cc42fa12f1.
July 30, 2021, 14:56 (GMT)
Cleanup: Remove debug-only code
July 30, 2021, 14:56 (GMT)
Fix memory leak with Python RNA property get callback errors

Failure to return a list of the expected size & type wasn't
decrementing the value, leaking a reference.

Caused by 127b5423d6203d521acb2b96b7de5534e8dbe79a a workaround for the
real error that was fixed f5e020a7a6ad6451fcaf075ae14f7014b8a4faea.
July 30, 2021, 14:56 (GMT)
Cleanup: add note from T85517 fix
July 30, 2021, 14:56 (GMT)
Cleanup: comment spelling & punctuation
July 30, 2021, 14:56 (GMT)
Fix T89415: update multi input indices after deleting a node

When deleting a node, links attached to that node are deleted, but if one
of those links was connected to a multi input socket, the indices of the
other links connected to it were not updated. This adds updates both in
the case of a normal delete as well as after a delete with reconnect.

Differential Revision: https://developer.blender.org/D11716
July 30, 2021, 14:56 (GMT)
Fix LLVM 12 symbol conflict with Mesa drivers, after recent Linux libs update
July 30, 2021, 14:56 (GMT)
PyAPI: support different int sizes for PyC_AsArray
July 30, 2021, 14:56 (GMT)
Added YAML builtbot config file.

Builtbot is switching over from json to yaml. Both
configuration files should be kept in sync for now.

The json file will be removed when everything works as expected.
July 30, 2021, 14:56 (GMT)
Cleanup: Fix build warning

Introduced in 3964785a1458
July 30, 2021, 14:56 (GMT)
Cleanup: Remove unnecesary undefs

Macros `SEQ_ALL_END` and `SEQ_ALL_BEGIN` no longer use `seq->tmp`.
Therefore they are safe to use regardless from where they are called.
July 30, 2021, 14:56 (GMT)
Fix T89952: GPencil channel box selection offset

The channel box selection was offset for grease pencil layers.

This is a proposed fix by @yann-lty

Before:
{F10227973}

After:
{F10227974}

Reviewed By: #grease_pencil, antoniov

Maniphest Tasks: T89952

Differential Revision: https://developer.blender.org/D11962
July 30, 2021, 14:56 (GMT)
VSE: don't snap by default

Snapping by default goes against convention, so this setting was
re-evaluated. Also snapping by default can conflict with new image
transform system, see T90156

There wasn't consensus, so disable snapping by default to follow
established convention.

ref T89665

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D12054
July 30, 2021, 14:56 (GMT)
PyAPI: add multi-dimensional array conversion utility functions

Add array conversion functions that take dimension arguments.

- PyC_AsArray_Multi (version of PyC_AsArray).
- PyC_Tuple_PackArray_Multi_* (version of PyC_Tuple_Pack_*).
July 30, 2021, 14:56 (GMT)
Anotations: Fix a several issues with stroke placement

Previously, this option was not exposed in the UI, only for the clip editor.
There were also multiple rna properties that did the same thing for each of the 2D editors.

There was also an issue where the property enum items were the same as the 3d view which didnt make much sense.

Reviewed By: antoniov

Differential Revision: https://developer.blender.org/D12027
July 30, 2021, 14:56 (GMT)
VSE: Fix audio not recalculated

Changing strip offsets with RNA properties didn't tag depsgraph to
update for new strip start/end points.
July 30, 2021, 14:56 (GMT)
Fix T75028: Improved Font Names in File Manager

When viewing font files in the File Manager, this patch uses the font's
family and style names to show the same type of string shown to users
in operating system lists. For example "Book Antiqua Regular" instead
of "BKANT.ttf"

see D12020 for details and examples.

Differential Revision: https://developer.blender.org/D12020

Reviewed by Campbell Barton and Julian Eisel
July 30, 2021, 14:56 (GMT)
Cleanup: VSE cache invalidated twice

Multiple RNA update function invalidated cache twice.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021