Blender Git Loki

Git Commits -> Revision 0b0e452

Revision 0b0e452 by Hans Goudey (master)
January 15, 2021, 17:04 (GMT)
Geometry Nodes: Use a default value in the point scale node

This commit adds the ability to provide a default value to
`attribute_try_get_for_output` and uses it for the `Point Scale` node,
which is important because the node uses multiplication.

The idea is to keep "name-specific" functionality in nodes rather than in
the attribute API, otherwise the complexity will be hard to keep track of.
So this fix doesn't apply to the Attribute Vector Math node, but hopfully
that is okay since that's now a lower level node for this purpose anyway.

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

Commit Details:

Full Hash: 0b0e45252b11bbc1c0d96a3e04a4087d02f765e3
Parent Commit: 3732508
Lines Changed: +13, -4

3 Modified Paths:

/source/blender/blenkernel/BKE_geometry_set.hh (+4, -2) (Diff)
/source/blender/blenkernel/intern/attribute_access.cc (+7, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_point_scale.cc (+2, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021