UI: Add icons to Set Handle Type menu
Some checks failed
Close GitHub Pull Requests / Close Pull Requests (push) Has been cancelled
Some checks failed
Close GitHub Pull Requests / Close Pull Requests (push) Has been cancelled
Add icons to curves "Set Handle Type" menu, (both legacy Curve and new Curves). Matching those in the Curve widgets. Graph Editor already uses icons for that menu. See PR for details and screenshots. Pull Request: https://projects.blender.org/blender/blender/pulls/148322
This commit is contained in:
committed by
Pablo Vazquez
parent
b95374418c
commit
537e264b70
@@ -4052,10 +4052,10 @@ void CURVE_OT_handle_type_set(wmOperatorType *ot)
|
|||||||
{
|
{
|
||||||
/* keep in sync with graphkeys_handle_type_items */
|
/* keep in sync with graphkeys_handle_type_items */
|
||||||
static const EnumPropertyItem editcurve_handle_type_items[] = {
|
static const EnumPropertyItem editcurve_handle_type_items[] = {
|
||||||
{HD_AUTO, "AUTOMATIC", 0, "Automatic", ""},
|
{HD_AUTO, "AUTOMATIC", ICON_HANDLE_AUTO, "Automatic", ""},
|
||||||
{HD_VECT, "VECTOR", 0, "Vector", ""},
|
{HD_VECT, "VECTOR", ICON_HANDLE_VECTOR, "Vector", ""},
|
||||||
{5, "ALIGNED", 0, "Aligned", ""},
|
{5, "ALIGNED", ICON_HANDLE_ALIGNED, "Aligned", ""},
|
||||||
{6, "FREE_ALIGN", 0, "Free", ""},
|
{6, "FREE_ALIGN", ICON_HANDLE_FREE, "Free", ""},
|
||||||
{3, "TOGGLE_FREE_ALIGN", 0, "Toggle Free/Align", ""},
|
{3, "TOGGLE_FREE_ALIGN", 0, "Toggle Free/Align", ""},
|
||||||
{0, nullptr, 0, nullptr, nullptr},
|
{0, nullptr, 0, nullptr, nullptr},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1793,22 +1793,22 @@ static wmOperatorStatus exec(bContext *C, wmOperator *op)
|
|||||||
const EnumPropertyItem rna_enum_set_handle_type_items[] = {
|
const EnumPropertyItem rna_enum_set_handle_type_items[] = {
|
||||||
{int(SetHandleType::Auto),
|
{int(SetHandleType::Auto),
|
||||||
"AUTO",
|
"AUTO",
|
||||||
0,
|
ICON_HANDLE_AUTO,
|
||||||
"Auto",
|
"Auto",
|
||||||
"The location is automatically calculated to be smooth"},
|
"The location is automatically calculated to be smooth"},
|
||||||
{int(SetHandleType::Vector),
|
{int(SetHandleType::Vector),
|
||||||
"VECTOR",
|
"VECTOR",
|
||||||
0,
|
ICON_HANDLE_VECTOR,
|
||||||
"Vector",
|
"Vector",
|
||||||
"The location is calculated to point to the next/previous control point"},
|
"The location is calculated to point to the next/previous control point"},
|
||||||
{int(SetHandleType::Align),
|
{int(SetHandleType::Align),
|
||||||
"ALIGN",
|
"ALIGN",
|
||||||
0,
|
ICON_HANDLE_ALIGNED,
|
||||||
"Align",
|
"Align",
|
||||||
"The location is constrained to point in the opposite direction as the other handle"},
|
"The location is constrained to point in the opposite direction as the other handle"},
|
||||||
{int(SetHandleType::Free),
|
{int(SetHandleType::Free),
|
||||||
"FREE_ALIGN",
|
"FREE_ALIGN",
|
||||||
0,
|
ICON_HANDLE_FREE,
|
||||||
"Free",
|
"Free",
|
||||||
"The handle can be moved anywhere, and does not influence the point's other handle"},
|
"The handle can be moved anywhere, and does not influence the point's other handle"},
|
||||||
{int(SetHandleType::Toggle),
|
{int(SetHandleType::Toggle),
|
||||||
|
|||||||
Reference in New Issue
Block a user