Page MenuHome

Make knife drawing anti aliased (Monkey work based on D11333)
Needs RevisionPublic

Authored by Urko (urko3d) on Aug 21 2021, 11:13 PM.

Details

Summary

Knife tool.

Make the drawing anti aliased and consistent by using
3D_POLYLINE/3D_POINT shaders, and making sure alpha
blending is on.

Monkey work based on D11333
done by Anthony Edlin (krash)

Diff Detail

Repository
rB Blender

Event Timeline

Urko (urko3d) requested review of this revision.Aug 21 2021, 11:13 PM
Urko (urko3d) created this revision.
Jeroen Bakker (jbakker) requested changes to this revision.Aug 23 2021, 1:12 PM
Jeroen Bakker (jbakker) added inline comments.
source/blender/editors/mesh/editmesh_knife.c
366

This line doesn't do anything
Uniform color is overwritten before any draw call.

370

Remove commented out code.

414

This line doesn't do anything
Uniform color is overwritten before any draw call.

417

Remove commented out code.

491

This line doesn't do anything
Uniform color is overwritten before any draw call.

543

In /* Reset default */ section I miss the reset to GPU_BLEND_NONE.

This revision now requires changes to proceed.Aug 23 2021, 1:12 PM

Updated the code.
Removed uniform color useless lines, comments and
add reset to GPU_BLEND_NONE in /* Reset default */ section

Urko (urko3d) marked 6 inline comments as done.Aug 24 2021, 10:28 PM
This revision is now accepted and ready to land.Aug 25 2021, 2:49 PM

This patch doesn't work in debug mode. There are several asserts that needs to be solved.

This revision is now accepted and ready to land.Sep 22 2021, 1:51 PM
Jeroen Bakker (jbakker) requested changes to this revision.Sep 22 2021, 1:51 PM
This revision now requires changes to proceed.Sep 22 2021, 1:51 PM