Blender Git Loki

Git Commits -> Revision 14621e7

Revision 14621e7 by Hans Goudey (master)
December 22, 2021, 22:29 (GMT)
Fix: Potential use after scope in curve to mesh node

I don't think this has been visible, since I only ran into it after
changing other code that affected this. However, some attributes
can keep a reference to the source component to use when tagging
caches dirty (like the position attribute tagging the normals dirty).
Here, the component was created inside a function, then the attributes
were used afterwards.

Also add some comments warning about this in the header file.

Commit Details:

Full Hash: 14621e7720da31aaff4d1eec29886b69077569ba
Parent Commit: c6e7fc9
Lines Changed: +16, -7

2 Modified Paths:

/source/blender/blenkernel/BKE_attribute_access.hh (+10, -3) (Diff)
/source/blender/blenkernel/intern/curve_to_mesh_convert.cc (+6, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021