UI: Improvements to Confirmation of Apply Modifier #117156

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

View File

@ -76,6 +76,8 @@
#include "BKE_softbody.h" #include "BKE_softbody.h"
#include "BKE_volume.hh" #include "BKE_volume.hh"
#include "BLT_translation.hh"
#include "DEG_depsgraph.hh" #include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh" #include "DEG_depsgraph_build.hh"
#include "DEG_depsgraph_query.hh" #include "DEG_depsgraph_query.hh"
@ -1812,8 +1814,14 @@ static int modifier_apply_invoke(bContext *C, wmOperator *op, const wmEvent *eve
RNA_property_boolean_set(op->ptr, prop, true); RNA_property_boolean_set(op->ptr, prop, true);
} }
if (RNA_property_boolean_get(op->ptr, prop)) { if (RNA_property_boolean_get(op->ptr, prop)) {
return WM_operator_confirm_message( return WM_operator_confirm_ex(
C, op, "Make object data single-user and apply modifier"); C,
op,
IFACE_("Apply Modifier"),
IFACE_("Make data single-user, apply modifier, and remove it from the list."),
IFACE_("Apply"),
ALERT_ICON_WARNING,
false);
} }
} }
return modifier_apply_exec(C, op); return modifier_apply_exec(C, op);