From 537e264b706ebf7b6a47a746b3985ba6ab206a02 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sat, 18 Oct 2025 18:45:44 +0200 Subject: [PATCH] UI: Add icons to Set Handle Type menu 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 --- source/blender/editors/curve/editcurve.cc | 8 ++++---- source/blender/editors/curves/intern/curves_ops.cc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/blender/editors/curve/editcurve.cc b/source/blender/editors/curve/editcurve.cc index ca0efcd25ed..7f408b23036 100644 --- a/source/blender/editors/curve/editcurve.cc +++ b/source/blender/editors/curve/editcurve.cc @@ -4052,10 +4052,10 @@ void CURVE_OT_handle_type_set(wmOperatorType *ot) { /* keep in sync with graphkeys_handle_type_items */ static const EnumPropertyItem editcurve_handle_type_items[] = { - {HD_AUTO, "AUTOMATIC", 0, "Automatic", ""}, - {HD_VECT, "VECTOR", 0, "Vector", ""}, - {5, "ALIGNED", 0, "Aligned", ""}, - {6, "FREE_ALIGN", 0, "Free", ""}, + {HD_AUTO, "AUTOMATIC", ICON_HANDLE_AUTO, "Automatic", ""}, + {HD_VECT, "VECTOR", ICON_HANDLE_VECTOR, "Vector", ""}, + {5, "ALIGNED", ICON_HANDLE_ALIGNED, "Aligned", ""}, + {6, "FREE_ALIGN", ICON_HANDLE_FREE, "Free", ""}, {3, "TOGGLE_FREE_ALIGN", 0, "Toggle Free/Align", ""}, {0, nullptr, 0, nullptr, nullptr}, }; diff --git a/source/blender/editors/curves/intern/curves_ops.cc b/source/blender/editors/curves/intern/curves_ops.cc index 81abb4ec7f4..ecff6091b4e 100644 --- a/source/blender/editors/curves/intern/curves_ops.cc +++ b/source/blender/editors/curves/intern/curves_ops.cc @@ -1793,22 +1793,22 @@ static wmOperatorStatus exec(bContext *C, wmOperator *op) const EnumPropertyItem rna_enum_set_handle_type_items[] = { {int(SetHandleType::Auto), "AUTO", - 0, + ICON_HANDLE_AUTO, "Auto", "The location is automatically calculated to be smooth"}, {int(SetHandleType::Vector), "VECTOR", - 0, + ICON_HANDLE_VECTOR, "Vector", "The location is calculated to point to the next/previous control point"}, {int(SetHandleType::Align), "ALIGN", - 0, + ICON_HANDLE_ALIGNED, "Align", "The location is constrained to point in the opposite direction as the other handle"}, {int(SetHandleType::Free), "FREE_ALIGN", - 0, + ICON_HANDLE_FREE, "Free", "The handle can be moved anywhere, and does not influence the point's other handle"}, {int(SetHandleType::Toggle),