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:
authorCampbell Barton <ideasman42@gmail.com>2019-05-01 01:29:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-01 01:31:18 +0300
commit3482e136bf0f3936ef6266bbb2865c0fe6b2fb48 (patch)
treec7b2d3f161e99609441fbaa590ac1ab91524487c
parentb7277aac728c262a570a79abbfdc1d2cba80684f (diff)
Fix error storing proportional editing for redo
Missed in recent changes to proportional edit mode.
-rw-r--r--source/blender/editors/transform/transform.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index edbc0f90a7d..48ce23c2c99 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -2173,8 +2173,10 @@ void saveTransform(bContext *C, TransInfo *t, wmOperator *op)
}
}
- if ((prop = RNA_struct_find_property(op->ptr, "proportional"))) {
- RNA_property_enum_set(op->ptr, prop, proportional);
+ if ((prop = RNA_struct_find_property(op->ptr, "use_proportional_edit"))) {
+ RNA_property_boolean_set(op->ptr, prop, proportional & PROP_EDIT_USE);
+ RNA_boolean_set(op->ptr, "use_proportional_connected", proportional & PROP_EDIT_CONNECTED);
+ RNA_boolean_set(op->ptr, "use_proportional_projected", proportional & PROP_EDIT_PROJECTED);
RNA_enum_set(op->ptr, "proportional_edit_falloff", t->prop_mode);
RNA_float_set(op->ptr, "proportional_size", t->prop_size);
}