Page MenuHome

Fix T85545: Changing position attribute does not tag normals dirty.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Feb 11 2021, 12:32 PM.

Details

Summary

This makes it so that normals are tagged dirty whenever the position attribute is requested for writing. This seems like a good default. If the calling code is aware of normals, it could untag normals when they are not changed by the operation.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Feb 11 2021, 12:32 PM
Jacques Lucke (JacquesLucke) created this revision.
Hans Goudey (HooglyBoogly) added inline comments.
source/blender/blenkernel/intern/attribute_access.cc
629

I wonder if the name should be slightly more general, this seems a bit specific to how this works for meshes. Maybe update_on_write?

The specific function name provided for this field can give the required context anyway.

This revision is now accepted and ready to land.Feb 11 2021, 10:17 PM