GPv3: Cyclical set operator #111904

Merged
Falk David merged 16 commits from casey-bianco-davis/blender:GPv3-cyclical-set-operator into main 2023-10-20 10:12:34 +02:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 8f45f2f5b7 - Show all commits

View File

@ -914,7 +914,9 @@ static int grease_pencil_cyclical_set_exec(bContext *C, wmOperator *op)
}
/* Remove the attribute if it is empty. */
if (!ed::curves::has_anything_selected(curves.cyclic(), curves.curves_range())) {
if (mode != CyclicalMode::CLOSE &&
casey-bianco-davis marked this conversation as resolved Outdated

This doesn't need to run in "Close" mode.

This doesn't need to run in "Close" mode.
!ed::curves::has_anything_selected(curves.cyclic(), curves.curves_range()))
{
curves.attributes_for_write().remove("cyclic");
}