Blender Git Commit Log

Git Commits -> Revision 53b7078

Revision 53b7078 by Bastien Montagne (master)
March 18, 2012, 22:06 (GMT)
Fix [#30234] Various problems with CD layers and tesselation, related to modifiers stack.

Should also fix [#30266], [#29451], and partly [#30316].

Here are the changes made by this commit:
* It adds a "dirty" flag to DerivedMesh struct (for now, only DM_DIRTY_TESS_CDLAYERS, but more might be added as needed).
* It adds a new func, DM_update_tessface_data, which assumes tessfaces themselves are valid, but updates tessellated customdata from their poly/loop counter parts.
* At end of modstack, when valid tessellated faces are present in finaldm , but the cdlayers dirty flag is set, call that function (instead of recomputing the whole tessellation).
* Edits to the codes concerned (UVProject, DynamicPaint, and Subsurf modifiers).
* Also add to subsurf dm generation code the creation of a CD_POLYINDEX layer (mandatory for DM_update_tessface_data to work well, and imho all tessellated dm should have one).

Note: some pieces of old code are just #if 0�??ed, will clean them later.

Commit Details:

Full Hash: 53b7078343c1fa0e9361e038163a6a17f52da4e4
SVN Revision: 44978
Parent Commit: 709ca0e
Lines Changed: +128, -9

7 Modified Paths:

/source/blender/blenkernel/BKE_DerivedMesh.h (+8, -0) (Diff)
/source/blender/blenkernel/BKE_mesh.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+95, -6) (Diff)
/source/blender/blenkernel/intern/dynamicpaint.c (+7, -1) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+12, -1) (Diff)
/source/blender/modifiers/intern/MOD_uvproject.c (+4, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021