Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 218 / 5574

July 5, 2021, 12:02 (GMT)
Cleanup: move repeated assignment out of nested for loop
Revision ab6a011 by YimingWu
July 5, 2021, 11:56 (GMT)
GPencil: Fix memory leak in trim and split functions.

`dvert->dw` from old strokes are not freed properly, fixed.
July 5, 2021, 11:42 (GMT)
Fix T89655: tweak Cycles transparent bounces UI for clarity

Transparent bounces are independent of other bounces, so don't group
them together.
Revision 2eca9c7 by Julian Eisel
July 5, 2021, 11:35 (GMT)
Cleanup: Move common File Browser renaming code into functions

Code would manually do the same things in a couple of places, obvious case of
unnecessary code duplication.
July 5, 2021, 11:10 (GMT)
Cleanup: use arrayWithObject to reduce the code

Similar code is found in Apple's code samples.

Differential Revision: https://developer.blender.org/D11434
July 5, 2021, 11:10 (GMT)
Cleanup: replace NSTextInput with NSTextInputClient

This revision replaces the deprecated protocol NSTextInput with
NSTextInputClient in Cocoa Text View. No functional changes.

For more information of the methods, please see:
https://developer.apple.com/documentation/appkit/nstextinputclient

Differential Revision: https://developer.blender.org/D11407
July 5, 2021, 11:02 (GMT)
BLI: add conversion constructor for destruct_ptr

This allows converting between different `destruct_ptr` types (which is
just a `std::unique_ptr` with a custom deleter).

The most common use case is to convert from a derived type to
the type of the base class.
July 5, 2021, 11:02 (GMT)
BLI: wrap more features off tbb::enumerable_thread_specific

* Make the wrapper enumerable.
* Support an initializer function.
July 5, 2021, 11:02 (GMT)
Functions: add utility to create string from value of generic type
July 5, 2021, 10:32 (GMT)
Tests: performance testing framework

These are scripts for benchmarking Blender features on real-world .blend
files. They were originally written for benchmarking Cycles performance, and
were made generic so they can be used for more Blender features.

The benchmarks can be run locally by developers. But the plan is to also run
these as part of continuous integration to track performance over time.

Currently there are tests for Cycles rendering and .blend file loading.

Documentation:
https://wiki.blender.org/wiki/Tools/Tests/Performance

Main features:
* User created configurations to quickly run, re-run and analyze a selected
subset of tests.
* Supports both benchmarking with existing builds, and automatic building of
specified git commits, tags and branches.
* Generate HTML page with bar and line graphs from test results.
* Controlled using simple command line tool.
* For writing tests, convenient abstraction to run a Python function in Blender
with arguments and return value.

Ref T74730

Differential Revision: https://developer.blender.org/D11662
July 5, 2021, 09:26 (GMT)
Fix T89523: Cycles OpenCL compile error after shadow terminator changes
July 5, 2021, 09:09 (GMT)
Cleanup: clang-tidy
July 5, 2021, 09:08 (GMT)
Cleanup: remove outdated comment
July 5, 2021, 08:54 (GMT)
Fix early return in reverse-color where continue was intended
July 5, 2021, 08:46 (GMT)
Geometry Nodes: new Viewer node

This adds a viewer node similar to the one in the compositor.
The icon in the headers of nodes is removed because it served
the same purpose and is not necessary anymore.

Node outputs can be connected to the active viewer using
ctrl+shift+LMB, just like in the compositor. Right now this collides
with the shortcut used in the node wrangler addon, which will
be changed separately.

As of now, the viewed geometry is only visible in the spreadsheet.
Viewport visualization will be added separately.

There are a couple of benefits of using a viewer node compared
to the old approach with the icon in the node header:
* Better support for nodes that have more than one geometry output.
* It's more consistent with the compositor.
* If attributes become decoupled from geometry in the future,
the viewer can have a separate input for the attribute to visualize.
* The viewer node could potentially have visualization settings.
* Allows to keep "visualization points" around by having multiple
viewer nodes.
* Less visual clutter in node headers.

Differential Revision: https://developer.blender.org/D11470
July 5, 2021, 08:36 (GMT)
BMesh: remove redundant mesh-backups from EDBM_op_* API

Using BMesh operators through the edit-mesh API created a full copy
of the mesh so it was possible to restore the mesh in case
one of the operators raised an error.

Remove support for automatic backup/restore from the EDBM_op_* API's
as it adds significant overhead and was rarely used.

Operators that need this can use the BMBackup API to backup & restore
the mesh in case of failure.

Add warning levels to BMO_error_raise so operators can report problems
without it being interpreted as a request to cancel the operation.

For high-poly meshes creating and freeing a full copy is an expensive
operation, removing this gives a speedup of ~1.77x for most operators
except for "connect_verts" / "connect_vert_pair"
which still uses this functionality.
July 5, 2021, 08:31 (GMT)
BMesh: dissolve faces no longer fails when some faces can't dissolve

Previously, any face groups that could not be merged into a face
caused the entire operation to report an error and do nothing.

Now these cases are skipped over, dissolving faces where possible.
July 5, 2021, 08:31 (GMT)
BMesh: remove redundant copy-on-write tagging

The evaluated meshes no longer store a copy of the edit-mesh
so tagging when a BMesh operator fails can be removed.
July 5, 2021, 08:29 (GMT)
Cleanup: unused variable
July 5, 2021, 05:54 (GMT)
Cleanup: spelling in comments
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021