Blender Git Commits

Blender Git "master" branch commits.

Page: 15 / 5574

December 13, 2021, 08:38 (GMT)
Fix T93169: Weightpaint falloff popover drawn twice

This came with {rBf8a0e102cf5e}.

The panel was meant specifically for the gradient tool, but since it was
given the ".weighpaint" context, it would also draw as part of generic
header toolsettings drawing.

Now remove this context on purpose and only draw this specifically from
the gradient tools ToolDef.

Maniphest Tasks: T93169

Differential Revision: https://developer.blender.org/D13268
December 13, 2021, 05:22 (GMT)
Cleanup: clang-format
December 13, 2021, 05:22 (GMT)
Cleanup: spelling in comments

Also move notes about where noise functions come from
into the function body as it's not relavant to the public doc-string.
December 13, 2021, 05:22 (GMT)
Cleanup: use "filepath" term for Main, BlendFileData & FileGlobal

Use "filepath" which is the current convention for naming full paths.

- Main use "name" which isn't obviously a file path.
- BlendFileData & FileGlobal used "filename" which is often
used for the name component of a path (without the directory).
December 13, 2021, 05:22 (GMT)
Cleanup: remove checks for invalid input for Python Run utilities

These arguments must be non-null for useful functionality,
there is no need for paranoid checks.

The return value in case of invalid input for BPY_run_string_as_number
was also wrong (casting -1 to a bool, when false was expected).
Revision 80f1527 by Hans Goudey
December 13, 2021, 05:00 (GMT)
Cleanup: Point cloud vs point-cloud in comments

Point cloud is two separate words, this just changes comments in
a few places where we were inconsistent. A small wording change
to another comment is also included.
Revision d9d4b98 by Hans Goudey
December 13, 2021, 04:56 (GMT)
Cleanup: Remove includes in node_util.h header

This ends up including the removed headers in many unnecessary places.
Also, remove unnecessary extern from function definitions.
December 13, 2021, 03:05 (GMT)
Docs: document all Global (G) struct members
December 13, 2021, 02:12 (GMT)
Docs: improve on doc-strings for BPY_extern_run.h

Also add ATTR_NONNULL function attributes.
Revision 03015a9 by Hans Goudey
December 13, 2021, 00:03 (GMT)
Cleanup/docs: Add comment to spline lookup factor method
December 12, 2021, 09:34 (GMT)
Geometry Nodes: improve memory reuse in procedure executor

This reduces the number of separate memory allocations done
by the multi-function procedure executor (which is used by the
field evaluation).

Now a linear memory allocator is used to allocate all intermediate
values. Furthermore, more buffers are reused when possible. This
reduces the total amount of allocated memory and improves
cache efficiency because the values are more likely to be in cache
already.

The performance improvement of this patch are most noticable
when few elements are processed by many functions. The situation
will improve even more with D13548, because then buffers can actually
be reused in practice. I measured up to 20% faster field evaluation
in extreme cases with this change.
December 12, 2021, 07:58 (GMT)
Cleanup: use struct instead of class

Using `class` and `struct` for the same type can cause issues on windows.
December 12, 2021, 07:17 (GMT)
UI: Add curve handle buttons to CurveMap interface

This patch exposes the vector handle options as buttons
and aligns the UI between CurveMap and CurveProfile more closely.
- CurveMap point editing is on a single row like CurveProfile
- Tools menu is moved to the right hand side on both widgets
- Emboss curve map buttons

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D10980
Revision 9df13fb by Ankit Meel
December 11, 2021, 16:59 (GMT)
macOS: add tilde-based path expander

Replaces `HOME` environment variable usage for user
directories like in D12802.

Reviewed By: #platform_macos, brecht
Differential Revision: https://developer.blender.org/D13212
Revision 23be5fd by Hans Goudey
December 11, 2021, 15:51 (GMT)
Cleanup: Use const arguments

Also remove unnecessary function to set a node type's
label function that duplicated its definition, and make
another function static.
Revision 96387a2 by Ankit Meel
December 11, 2021, 13:37 (GMT)
Cleanup: const, autoreleasepool, remove unneeded cast.

Early return in some places also.
De-duplicate getSystemDir and getUserDir also.

Reviewed By: #platform_macos, brecht
Differential Revision: https://developer.blender.org/D13211
December 11, 2021, 10:26 (GMT)
Geometry Nodes: remove accidental exponential time algorithm

Calling `foreach_field_input` on a highly nested field (we do that
often) has an exponential running time in the number of nodes.
That is because the same node may be visited many times.
This made Blender freeze on some setups that should work just fine.
Now every field keeps track of its inputs all the time. That replaces
the exponential algorithm with constant time access.
December 11, 2021, 08:48 (GMT)
Fix compilation error on Windows platform.
December 11, 2021, 00:02 (GMT)
Sky: Use Gauss-Laguerre quadrature for optical depth calculation

This allows to use fewer evaluations (30 msec down to 23 for me) while giving more accurate results (3x-10x less relative absolute error) compared to classic ray marching.

Not a massive difference, but meh, it's better. For Cycles the speedup doesn't really matter much, but I also have a patch for Eevee support.

I've also tried Gauss-Legendre and Gauss-Lobatto - the latter was always worse, while the former was slightly better at 2deg elevation but notably worse on 15deg.

Unfortunately the same approach can't be used for the integration along the primary ray, since there we also need the accumulated transmission so far at every integration point, not just the total result.

Differential Revision: https://developer.blender.org/D13521
Revision 1a02c0d by Hans Goudey
December 10, 2021, 22:42 (GMT)
Cleanup: Return early for null check
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021