Anim: Update NLA "make single user" popup dialog

Update the `NLA_OT_make_single_user` dialogue and confirmation modal to make explicitly clear what's happening for the selected strips.

Pull Request: https://projects.blender.org/blender/blender/pulls/120082
This commit is contained in:
Nate Rupsis 2024-04-04 18:34:08 +02:00 committed by Nate Rupsis
parent 7ba8fc1768
commit 298c9276e9
1 changed files with 9 additions and 8 deletions

View File

@ -2095,13 +2095,14 @@ static int nlaedit_make_single_user_exec(bContext *C, wmOperator * /*op*/)
static int nlaedit_make_single_user_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*/)
{
if (RNA_boolean_get(op->ptr, "confirm")) {
return WM_operator_confirm_ex(C,
op,
IFACE_("Make each action single-user in the selected strips?"),
nullptr,
IFACE_("Make Single"),
ALERT_ICON_NONE,
false);
return WM_operator_confirm_ex(
C,
op,
IFACE_("Make Selected Strips Single-User"),
IFACE_("Linked actions will be duplicated for each selected strip."),
IFACE_("Make Single"),
ALERT_ICON_WARNING,
false);
}
return nlaedit_make_single_user_exec(C, op);
}
@ -2111,7 +2112,7 @@ void NLA_OT_make_single_user(wmOperatorType *ot)
/* identifiers */
ot->name = "Make Single User";
ot->idname = "NLA_OT_make_single_user";
ot->description = "Ensure that each action is only used once in the set of strips selected";
ot->description = "Make linked action local to each strip";
/* api callbacks */
ot->invoke = nlaedit_make_single_user_invoke;