Fix T55744: Assertion failure using the Knife angle constraint option

This commit is contained in:
Clément Foucault 2018-07-27 12:15:39 +02:00
parent c6a4b469e3
commit bd6d0b94bc
Notes: blender-bot 2023-02-14 05:38:34 +01:00
Referenced by issue #56140, Viewport crashes
Referenced by issue #55744, Blender 2.8 assertion failure when using the Knife angle constraint option
1 changed files with 4 additions and 3 deletions

View File

@ -1048,14 +1048,15 @@ static void knifetool_draw(const bContext *UNUSED(C), ARegion *UNUSED(ar), void
GPU_matrix_push();
GPU_matrix_mul(kcd->ob->obmat);
if (kcd->mode == MODE_DRAGGING && kcd->is_angle_snapping) {
knifetool_draw_angle_snapping(kcd);
}
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
if (kcd->mode == MODE_DRAGGING) {
if (kcd->is_angle_snapping)
knifetool_draw_angle_snapping(kcd);
immUniformColor3ubv(kcd->colors.line);
GPU_line_width(2.0);