Page MenuHome

Mesh: Add versioning in 3.0 for vertex normal refactor
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Jan 17 2022, 5:50 PM.

Details

Summary

This tags all meshes from the future 3.1 version dirty,
since normals aren't "implicitly" read as part of MVert
anymore.


The code change is straightforward here, I'm just making
a patch since I think that's the correct process for the 3.0 branch.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Jan 17 2022, 5:50 PM
Hans Goudey (HooglyBoogly) created this revision.
Hans Goudey (HooglyBoogly) edited the summary of this revision. (Show Details)

LGTM, would appreciate Campbell giving the green light

Works well, although this tags mesh->runtime.cd_dirty_poly is there any reason why polygons should be handled too?
If not, this could assign mesh->runtime.cd_dirty_vert |= CD_MASK_NORMAL.

Use cd_dirty_vert explicitly instead

This revision is now accepted and ready to land.Jan 24 2022, 9:30 AM
source/blender/blenloader/intern/versioning_300.c
64

This can be removed.