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
This commit is contained in:
committed by
Brecht Van Lommel
parent
b8a3560a77
commit
1058006e03
@@ -786,7 +786,7 @@ void WM_operator_properties_reset(wmOperator *op)
|
|||||||
RNA_PROP_BEGIN (op->ptr, itemptr, iterprop) {
|
RNA_PROP_BEGIN (op->ptr, itemptr, iterprop) {
|
||||||
PropertyRNA *prop = static_cast<PropertyRNA *>(itemptr.data);
|
PropertyRNA *prop = static_cast<PropertyRNA *>(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);
|
const char *identifier = RNA_property_identifier(prop);
|
||||||
RNA_struct_idprops_unset(op->ptr, identifier);
|
RNA_struct_idprops_unset(op->ptr, identifier);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user