Files
test/source/blender/blenkernel
Charlie Jolly fe4e85a924 Nodes: Dynamic node class for Map Range node
This patch makes it possible to set the UI color of a node's
header bar and override the default from the node's typeinfo.

Currently the color is taken from the `.nclass`
member of the node's bNodeType->TypeInfo struct.
This is created once when registering the node.
The TypeInfo is used for both UI and non-UI functionality.
Since the TypeInfo is shared, the header bar for the node
can't be changed without changing all nodes of that type.

The Map Range node is shown as a `Converter` or blue color by default.
This patch allows this to be changed dynamically to `Vector` or purple.

This is done by adding a `ui_class` callback to node typeinfo struct.

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D13936
2022-02-07 15:39:39 +00:00
..
2021-08-26 12:39:45 +10:00
2021-09-12 19:51:16 +10:00
2022-02-04 16:07:24 +11:00
2022-01-26 16:06:22 +11:00
2022-01-28 08:06:19 +01:00
2022-01-26 16:06:22 +11:00
2022-01-19 14:05:56 +11:00
2022-01-18 14:13:58 +11:00