UV: Vert and Edge Slide UI improvements

Changes:
- Add Vert Slide and Edge Slide to 'UV -> Transform' menu.
- Add a separator for Vert Slide and Edge Slide in the context menu.
- Don't display the "Correct UVs" option in the Redo menu of UV Editor.
This commit is contained in:
Germano Cavalcante
2024-03-13 12:16:02 -03:00
parent 31745a53f4
commit f6a581e28a
2 changed files with 23 additions and 10 deletions

View File

@@ -607,6 +607,12 @@ static bool transform_poll_property(const bContext *C, wmOperator *op, const Pro
return RNA_boolean_get(op->ptr, "snap");
}
/* #P_CORRECT_UV. */
if (STREQ(prop_id, "correct_uv")) {
ScrArea *area = CTX_wm_area(C);
return area->spacetype == SPACE_VIEW3D;
}
return true;
}