Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhartha Jejurkar <sidd017>2022-06-28 14:32:32 +0300
committerSiddhartha Jejurkar <f20180617@goa.bits-pilani.ac.in>2022-06-28 22:48:22 +0300
commit33be9c08856fb0fbdafdc12843addc944ce4183b (patch)
tree54e6e2f938b04f458cc55f7175acc6e1d04349d2 /source/blender/editors/uvedit/uvedit_select.c
parentc257443192238e85e482908f1638c7edc0979f2e (diff)
Fix T98924: Skip saving selection properties for UV edge ring operator
Oversight in rB7724251af81f. Skip saving selection properties for UV edge ring operator as it allows the operator to re-use the value that was previously set using the key-map. Reviewed By: campbellbarton Maniphest Tasks: T98924 Differential Revision: https://developer.blender.org/D15214
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_select.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_select.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/editors/uvedit/uvedit_select.c b/source/blender/editors/uvedit/uvedit_select.c
index 964ac5f650b..db834f6a0fd 100644
--- a/source/blender/editors/uvedit/uvedit_select.c
+++ b/source/blender/editors/uvedit/uvedit_select.c
@@ -2935,12 +2935,14 @@ void UV_OT_select_edge_ring(wmOperatorType *ot)
ot->poll = ED_operator_uvedit; /* requires space image */
/* properties */
- RNA_def_boolean(ot->srna,
- "extend",
- 0,
- "Extend",
- "Extend selection rather than clearing the existing selection");
- RNA_def_float_vector(
+ PropertyRNA *prop;
+ prop = RNA_def_boolean(ot->srna,
+ "extend",
+ 0,
+ "Extend",
+ "Extend selection rather than clearing the existing selection");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
+ prop = RNA_def_float_vector(
ot->srna,
"location",
2,
@@ -2951,6 +2953,7 @@ void UV_OT_select_edge_ring(wmOperatorType *ot)
"Mouse location in normalized coordinates, 0.0 to 1.0 is within the image bounds",
-100.0f,
100.0f);
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
/** \} */