Page MenuHome

Fix T39781: Autosmooth feature: erroneously showing hidden vertices' normals too when in "vertex per face" display
ClosedPublic

Authored by Bastien Montagne (mont29) on Apr 21 2014, 7:44 PM.

Details

Summary

So, turned out after all we need a foreachmapped helper for loops as well... :/

CDDM and EBDM were reasonably simple, but I faought hours with CCGDM (subsurf) to find only a
bad working solution (commented out in this patch). So I fallback to a code similar to CDDM one.
Probably not nice for performances, but loops and subsurf are not matching well...

Diff Detail

Event Timeline

Checking if (flag & DM_FOREACH_USE_NORMAL) { seems a bit strange, shouldn't this be a check inline? rather then 2 codepaths just for normals?

source/blender/blenkernel/intern/cdderivedmesh.c
1723 ↗(On Diff #1517)

for sake of completeness shouldn't it else { and loop over loops still?

source/blender/blenkernel/intern/editderivedmesh.c
414 ↗(On Diff #1517)

Same as above

Bastien Montagne (mont29) updated this revision to Unknown Object (????).Apr 23 2014, 3:07 PM

Updated to not depend on USE_NORMAL!

Yuck, sorry, will update patch again :/

Bastien Montagne (mont29) updated this revision to Unknown Object (????).Apr 23 2014, 3:12 PM

real updated patch...

LGTM.

picky editderivedmesh.c has some odd WS changes

source/blender/blenkernel/intern/subsurf_ccg.c
1567 ↗(On Diff #1532)

prefer not to commit this really large chunk if its not used. For archival purposes it can remain in this diff?