UI: Improvements to Confirmation of Pack Resources #117155

Merged
Harley Acheson merged 10 commits from Harley/blender:ConfirmPackResources into main 2024-02-24 01:42:29 +01:00
1 changed files with 8 additions and 2 deletions

View File

@ -176,8 +176,14 @@ static int pack_all_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*
}
if (ima) {
return WM_operator_confirm_message(
C, op, "Some images are painted on. These changes will be lost. Continue?");
return WM_operator_confirm_ex(
C,
op,
IFACE_("Pack all used external files into this .blend file"),
IFACE_("Warning: Some images are modified and these changes will be lost."),
IFACE_("Pack"),
ALERT_ICON_WARNING,
false);
}
return pack_all_exec(C, op);