Blender Git Loki

Kaikki Blender Git kommitit.

Page: 1106 / 8462

November 19, 2020, 23:32 (GMT)
Support getting data about active file/asset from BPY

Adds a label to the sidebar showing the name of the active file.
November 19, 2020, 23:05 (GMT)
Geometry Nodes: Rename category Scattering to Point and sort

The Geometry category should come before Input.
November 19, 2020, 22:16 (GMT)
GPencil: Support for PDF export

November 19, 2020, 22:15 (GMT)
Cycles: Fixed zero sized normals when certain attributes were missing.

The Normal Map node was falling back to (0, 0, 0) when it was missing
the required attributes to calculate a new normal.
(0, 0, 0) is not a valid normal and can lead to NaNs when it is
normalized later in the shader. Instead, we now return sd->N,
the unperturbed surface normal.
November 19, 2020, 22:13 (GMT)
Geometry Nodes: Hide unsupported attribute types and domains

The random attribute node currently doesn't support every attribute
domain or data type. With a bit of boilerplate code we can remove these
unsupported enum items from the UI for now, and also get a system to
remove unsupported items from the UI in the future. If all attribute
creation nodes end up always supporting all attibute types and domains,
this can be removed.
November 19, 2020, 20:21 (GMT)
Geometry Nodes: Expose the active modifier to the UI

This exposes the operator to set the active modifier as the type icon
in the header of the modifier panels. Tweaks to the widget drawing
code were necessary to use the red alert for non-emboss operator
buttons. Then, the panel for the active modifier gets a border around it
(which currently uses the property search theme color), requiring
an "active property" field in the PanelType struct.
November 19, 2020, 19:47 (GMT)
Geometry Nodes: Add an operator to set the active modifer

Also make new modifiers active, and properly set the active
state when duplicating a modifier.
November 19, 2020, 19:44 (GMT)
Geometry Nodes: Disallow editing and animating modifier active property

There will be an operator to access this property instead, which provides
a better name and tooltip to expose in the UI, and makes it more clear
that the property is dependent on the other modifiers.
November 19, 2020, 19:35 (GMT)
Geometry Nodes: Add the concept of an active modifier

This commit adds functions to set and get the object's active
modifier, which is stored as a flag in the ModifierData struct,
similar to constraints. This will be used to set the context in
the node editor. There are no visible changes in this commit.
November 19, 2020, 19:02 (GMT)
GPencil: Prepare structure for PDF export

This commit is only to define the different elements.
November 19, 2020, 18:53 (GMT)
Merge branch 'master' into asset-browser
November 19, 2020, 18:09 (GMT)
Fix T82769: remove thread local data from PTCacheMem

The issue was that the same point cache was read by multiple
threads at the same time (the same object was evaluated for
render and for the viewport).
Both threads incremented PTCacheMem->cur which lead to the crash.

The fix is to remove the PTCacheMem->cur and store it on the
stack instead. This way every thread has its own cur.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D9606
November 19, 2020, 16:41 (GMT)
Cleanup: use struct instead of class
November 19, 2020, 16:38 (GMT)
Merge branch 'master' into geometry-nodes
November 19, 2020, 16:21 (GMT)
Geometry Nodes: Categories for the nodes

See T82367. There is some ongoing discussion about Attributes vs
Attribute. But it is settle to Attribute, so it matches Color, Vector
and Geometry.
November 19, 2020, 16:19 (GMT)
Atomic: Cover with unit tests

Cover all atomic functions with unit tests.

The tests are quite simple, nothing special so far. The goal is to:

- Make sure implementation exists.
- Implementation behaves the same way on all platforms
(We had issue when MSVC and GCC were behaving differently in the
past).
- Proper bitness is used for implementation and non-fixed-size
function implementation.

The tests can be extended further to make sure, for example, that
CAS operations do not cast arguments to a more narrow type for
comparison. Considering it a possible further improvement, as it is
better be done being focused on that specific task.

There is an annoying ifdef around 64bit implementation, which uses
same internal ifdef as the header does. This check is aimed to be
removed, so is easier to simply accept such duplication for now.

The tests seems somewhat duplicate for signed/unsigned variants and
things like this. The reason for that is to keep test code as simple
as possible: attempting to do something smart/tricky in the test code
often causes the test code to be a subject of being covered with its
own unit tests.

Differential Revision: https://developer.blender.org/D9590
November 19, 2020, 15:59 (GMT)
Geometry Nodes: T82701 Name for initial Node Groups

Rename it from "Geometry Node Group" to "Geometry Nodes". This is
shorter and equality descriptive.
November 19, 2020, 15:29 (GMT)
Fix RNA not giving error with invalid identifiers for collection properties
November 19, 2020, 15:17 (GMT)
Guarded allocator: Fix lock-free allocator tests

Previously the lock-free tests were actually testing guarded allocator
because the main entry point of tests was switching allocator to the
guarded one.

There seems to be no allocations happening between the initialization
sequence and the fixture's SetUp(), so easiest seems to be just to
switch to lockfree implementation in the fixture's SetUp().

The test are passing locally, so the "should work" has high chance
of actually being truth :)

Differential Revision: https://developer.blender.org/D9584
November 19, 2020, 15:17 (GMT)
Guarded allocator: Add safety around type change

While it might not cover all possible abuse of API, it does provide
basic checks against most obvious usage mistakes.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021