Blender Git Commit Log

Git Commits -> Revision f117ea2

Revision f117ea2 by Hans Goudey (master)
March 5, 2021, 21:16 (GMT)
Geometry Nodes: Expose vertex normals as an attribute

This attribute exposes mesh vertex normals as a `vertex_normal`
attribute for use with nodes. Since the normal vector stored in
vertices is only a cache of data computable from the surrounding faces,
the attribute is read-only. A proper error message for attempting to
write this attribute is part of T85749. A write-only normal attribute
will likely come later, most likely called `corner_normal`.

The normals are recomputed before reading if they are marked dirty.
This involves const write-access to the mesh, protected by the mutex
stored in `Mesh_Runtime`. This is essential for correct behavior after
nodes like "Edge Split" or nodes that adjust the position attribute.

Ref T84297, T85880, T86206

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

Commit Details:

Full Hash: f117ea26246355f423fd78785a3b00a2490bd9a4
Parent Commit: becc36c
Lines Changed: +70, -4

3 Modified Paths:

/source/blender/blenkernel/intern/attribute_access.cc (+65, -1) (Diff)
/source/blender/blenkernel/intern/geometry_set_instances.cc (+2, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_join_geometry.cc (+3, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021