Page MenuHome

Fix wireframe overlay not blending over paint overlay correctly
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Aug 17 2021, 12:41 AM.

Details

Summary

When using wireframe opacity, the paint overlay needs to be drawn
before the wireframes in order to alpha blend correctly.
Sculpt overlays were also affected by this, so this commit refactors
this part of the code in case other overlays needs to be added in
the future.

Before:

After:

Diff Detail

Repository
rB Blender

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Aug 17 2021, 12:41 AM
Pablo Dobarro (pablodp606) created this revision.

Codewise seems ok, but would like to have some feedback from users as the lines are less clear with this patch.

Tested, seems good! Previous behaviour was very strange. I didn't use the wireframe opacity slider before so I didn't know about this, but apparently without this patch, reducing wireframe opacity would just blend from an orange wireframe into a white wireframe - as opposed to blending out the wireframe. Hence the less visibility on the before/after. So things definitely make more sense with the patch.
Now my only wish is that the "Show Wire" paint overlay option would use the same wireframe drawing method, but I guess that's a separate issue :)

This revision is now accepted and ready to land.Aug 17 2021, 12:30 PM