Blender Git Commit Log
Git Commits -> Revision 3a254b9
Revision 3a254b9 by Jacques Lucke (master) January 12, 2021, 11:50 (GMT) |
Geometry Nodes: support reading from spans of WriteAttribute Previously, the span returned by `WriteAttribute`s might not contain the current value of the attribute for performance reasons. To avoid some bugs, the span now always contains the old values (they might have to be copied over from the internal storage, dependending on how the attribute is stored). The old behavior is still available with the `get_span_for_write_only` method. The span that it returns might not contain the current attribute values. Therefore, it should only be used when you want to overwrite an attribute without looking at the old values. |
Commit Details:
Full Hash: 3a254b93fd8597c47fc4fe55fa0417d1f9fa85fc
Parent Commit: 58dae91
Lines Changed: +51, -26
8 Modified Paths:
/source/blender/blenkernel/BKE_attribute_access.hh (+10, -4) (Diff)
/source/blender/blenkernel/intern/attribute_access.cc (+27, -8) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_color_ramp.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_compare.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_fill.cc (+4, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_math.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_vector_math.cc (+6, -6) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_join_geometry.cc (+1, -1) (Diff)
/source/blender/blenkernel/intern/attribute_access.cc (+27, -8) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_color_ramp.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_compare.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_fill.cc (+4, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_math.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_vector_math.cc (+6, -6) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_join_geometry.cc (+1, -1) (Diff)