Page MenuHome

Fix T97853: Crash with edit mode X-ray and subdivision
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on May 5 2022, 11:00 AM.

Details

Summary

The mesh drawing code used a different mesh to check whether or not to
draw face dots and to actually retrieve them. The fix is moving the
responsibility of determining whether to use subsurf face dots to the
creation of MeshRenderData where the mesh used for drawing is
known, rather than doing it at a higher level.

Diff Detail

Repository
rB Blender

Event Timeline

Looks good to me.
I just wonder why we have this use_subsurf_fdots member.
It seems to me that we could just check if there is a mr->me->runtime.subsurf_face_dot_tags inside the extractors and always use that bitmap if it exists.

But that would be just to organize the code a bit more. (not relevant).

This revision is now accepted and ready to land.May 5 2022, 2:20 PM