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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_curve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c
index 854c8757d4d..d73eea52f4b 100644
--- a/source/blender/makesrna/intern/rna_curve.c
+++ b/source/blender/makesrna/intern/rna_curve.c
@@ -1614,7 +1614,9 @@ static void rna_def_curve(BlenderRNA *brna)
RNA_def_property_ui_text(
prop, "Bevel Mode", "Determine how to build the curve's bevel geometry");
RNA_def_property_enum_funcs(prop, NULL, "rna_Curve_bevel_mode_set", NULL);
- RNA_def_property_update(prop, 0, "rna_Curve_update_data");
+ /* Use this update function so the curve profile is properly initialized when
+ * switching back to "Profile" mode after changing the resolution. */
+ RNA_def_property_update(prop, 0, "rna_Curve_bevel_resolution_update");
prop = RNA_def_property(srna, "bevel_profile", PROP_POINTER, PROP_NONE);
RNA_def_property_struct_type(prop, "CurveProfile");