Blender Git Commit Log

Git Commits -> Revision 70061c6

Revision 70061c6 by Charlie Jolly (master)
March 26, 2021, 16:29 (GMT)
Geometry Nodes: Implicit conversion change for float/int/color to bool

Change `float to boolean` and `int32 to boolean` to return false for zero and negative values.

This aligns with how artists would expect these values to work. This is in contrast to what a coder would expect. It was determined on blender.chat that this was a better default. This means that a negative float value would give a boolean false.

Change `Color4f to boolean` to return false for zero and negative grayscale values.

Likewise, for color to boolean, to account for negative value colors, the grayscale value would be used for determining if a colour was false or not.

See {T86454}

Reviewed By: JacquesLucke

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

Commit Details:

Full Hash: 70061c69b79721a6b69475dd296b10a5c9658f1c
Parent Commit: 1e85514
Lines Changed: +6, -5

1 Modified Path:

/source/blender/nodes/intern/node_tree_multi_function.cc (+6, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021