Blender Git Commit Log

Git Commits -> Revision cf77180

Revision cf77180 by Jacques Lucke (master)
October 29, 2021, 07:28 (GMT)
Geometry Nodes: do cache invalidation after writing attributes

This is a better and more general fix for T92511 and T92508 than
the ones that I committed before.

Previously, we tagged caches dirty when first accessing attributes.
This led to incorrect caches when under some circumstances. Now
cache invalidation is part of `OutputAttribute.save()`.

A nice side benefit of this change is that it may make things more
efficient in some cases, because we don't invalidate caches when
they don't have to be invalidated.

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

Commit Details:

Full Hash: cf771807b7997949611dbf76b43150592c9977cb
Parent Commit: b546202
Lines Changed: +98, -43

8 Modified Paths:

/source/blender/blenkernel/BKE_attribute_access.hh (+2, -0) (Diff)
/source/blender/blenkernel/BKE_spline.hh (+2, -0) (Diff)
/source/blender/blenkernel/intern/attribute_access.cc (+36, -7) (Diff)
/source/blender/blenkernel/intern/attribute_access_intern.hh (+2, -2) (Diff)
/source/blender/blenkernel/intern/curve_eval.cc (+7, -0) (Diff)
/source/blender/blenkernel/intern/geometry_component_curve.cc (+38, -25) (Diff)
/source/blender/blenkernel/intern/geometry_component_instances.cc (+10, -8) (Diff)
/source/blender/blenkernel/intern/geometry_component_mesh.cc (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021