From 1058006e032daa9cea331965799b04184fabec59 Mon Sep 17 00:00:00 2001 From: Guillermo Venegas Date: Sat, 16 Mar 2024 19:34:49 +0100 Subject: [PATCH] Fix #119549: Avoid resetting properties tagged as `SKIP_PRESET` Excludes properties tagged as `SKIP_PRESET` from being reset. Pull Request: https://projects.blender.org/blender/blender/pulls/119550 --- source/blender/windowmanager/intern/wm_operators.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/windowmanager/intern/wm_operators.cc b/source/blender/windowmanager/intern/wm_operators.cc index 4bba9bee6dd..b4170f1419b 100644 --- a/source/blender/windowmanager/intern/wm_operators.cc +++ b/source/blender/windowmanager/intern/wm_operators.cc @@ -786,7 +786,7 @@ void WM_operator_properties_reset(wmOperator *op) RNA_PROP_BEGIN (op->ptr, itemptr, iterprop) { PropertyRNA *prop = static_cast(itemptr.data); - if ((RNA_property_flag(prop) & PROP_SKIP_SAVE) == 0) { + if ((RNA_property_flag(prop) & (PROP_SKIP_SAVE | PROP_SKIP_PRESET)) == 0) { const char *identifier = RNA_property_identifier(prop); RNA_struct_idprops_unset(op->ptr, identifier); }