Page MenuHome

Fix T86874: Wireframe Overlay Mesh Primitives Grid, Circle. Add ME_EDGEDRAW, ME_EDGERENDER edge flags
ClosedPublic

Authored by Kris (Metricity) on Apr 2 2021, 1:56 AM.

Details

Summary

Fix T86874: Wireframe Overlay Mesh Primitives Grid, Circle. Add ME_EDGEDRAW, ME_EDGERENDER edge flags

Set flags on the inside edges for grid and circle triangle fan (mesh primitive nodes) so they are visible and selectable.

Diff Detail

Repository
rB Blender

Event Timeline

Kris (Metricity) requested review of this revision.Apr 2 2021, 1:56 AM
Kris (Metricity) created this revision.

No code changes, added more context to the diff

Hans Goudey (HooglyBoogly) accepted this revision.EditedApr 2 2021, 5:53 AM

Nice, thanks! Seems these flags are actually added in many places, so this is quite reasonable.

It's a shame there are no comments on their definitions, would have saved us all some time!

This revision is now accepted and ready to land.Apr 2 2021, 5:53 AM

@Kris (Metricity) Hey, thanks for the patch. You mentioned that you compared the flags of the edges of Mesh and BMesh and found out that it was not set in Mesh.
I was curious to know how did you figure it out? (You used a Debugger placed breakpoints at both places and ..compared side by side?)

I tried to follow your steps and reached there. But then I thought I wouldn't have figured it out myself for a long time.
I would be glad if you could share your thought process.
We could discuss it on blender.chat as well.

Thanks!

Yes @Himanshi Kalra (calra) I did do exactly what you mentioned. I placed a breakpoint on the return and viewed mesh in Watch 1 and result in Watch 2 (Visual Studio). This only showed data for the first edge but luckily that was different anyway. I then played with a natvis config so I could view all the edge data in the debugger.