Blender Git Loki

Git Commits -> Revision 1757840

Revision 1757840 by Johnny Matthews (master)
December 1, 2021, 15:36 (GMT)
Geometry Nodes: Generalized Compare Node

Replace compare floats node with a generalized compare node. The node
allows for the comparison of float, int, string, color, and vector.

The datatypes support the following operators:
Float, Int: <, >, <=, >=, ==, !=
String: ==, !=
Color: ==, !=, lighter, darker
(using rgb_to_grayscale value as the brightness value)

Vector Supports 5 comparison modes for: ==, !=, <, >, <=, >=
Average: The average of the components of the vectors are compared.
Dot Product: The dot product of the vectors are compared.
Direction: The angle between the vectors is compared to an angle
Element-wise: The individual components of the vectors are compared.
Length: The lengths of the vectors are compared.

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

Commit Details:

Full Hash: 17578408434fafd2463ed253eebb5cb1412a6c67
Parent Commit: f8dd03d
Lines Changed: +734, -166

1 Added Path:

/source/blender/nodes/function/nodes/node_fn_compare.cc (+490, -0) (View)

1 Deleted Path:

/source/blender/nodes/function/nodes/node_fn_float_compare.cc (+0, -121)

13 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+1, -1) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.cc (+1, -1) (Diff)
/source/blender/blenloader/intern/versioning_300.c (+14, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+29, -8) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+177, -13) (Diff)
/source/blender/makesrna/RNA_enum_items.h (+1, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_legacy_attribute_compare.cc (+6, -6) (Diff)
/source/blender/nodes/intern/math_functions.cc (+6, -6) (Diff)
/source/blender/nodes/NOD_function.h (+1, -1) (Diff)
/source/blender/nodes/NOD_math_functions.hh (+5, -5) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021