Blender Git Commit Log

Git Commits -> Revision 8e09293

Revision 8e09293 by Johnny Matthews (lineart-shadow)
December 8, 2021, 06:51 (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: 8e092936b5d1c37e67c3ae802f3dc28d194c6bf9
Parent Commit: cfc177a
Committed By: YimingWu
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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021