Fix #145560: Invalid curve flag set in legacy curve pen tool

Instead of just disabling the cyclic bit of the flag, the code
reset the whole flag to -2 which doesn't really make sense.
It cause a problem because the "custom knots" bit was set
but there weren't any allocated custom knots.

Pull Request: https://projects.blender.org/blender/blender/pulls/145580
This commit is contained in:
Hans Goudey
2025-09-02 18:08:28 +02:00
committed by Hans Goudey
parent ab97708210
commit bb3bf5fca0

View File

@@ -1125,7 +1125,7 @@ static void extrude_points_from_selected_vertices(const ViewContext *vc,
new_last_nu,
new_last_nu->bezt ? (const void *)new_last_nu->bezt :
(const void *)new_last_nu->bp);
new_last_nu->flagu = ~CU_NURB_CYCLIC;
new_last_nu->flagu &= ~CU_NURB_CYCLIC;
}
}