[Bf-blender-cvs] [9c44b6076dd] soc-2019-bevel-profiles: Profile Widget: Remove extra unecessary RNA function

Hans Goudey noreply at git.blender.org
Mon Aug 12 21:12:10 CEST 2019


Commit: 9c44b6076dd5917435d490cde7123c94255c322c
Author: Hans Goudey
Date:   Mon Aug 12 09:25:45 2019 -0400
Branches: soc-2019-bevel-profiles
https://developer.blender.org/rB9c44b6076dd5917435d490cde7123c94255c322c

Profile Widget: Remove extra unecessary RNA function

===================================================================

M	source/blender/makesrna/intern/rna_profile.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_profile.c b/source/blender/makesrna/intern/rna_profile.c
index 133834ae014..e822d106a3b 100644
--- a/source/blender/makesrna/intern/rna_profile.c
+++ b/source/blender/makesrna/intern/rna_profile.c
@@ -75,11 +75,6 @@ static void rna_ProfileWidget_clip_set(PointerRNA *ptr, bool value)
   BKE_profilewidget_changed(prwdgt, false);
 }
 
-static void rna_ProfileWidget_totsegments_set(struct ProfileWidget *prwdgt, int totsegments)
-{
-  prwdgt->totsegments = (short)totsegments;
-}
-
 static void rna_ProfileWidget_sample_straight_set(PointerRNA *ptr, bool value)
 {
   ProfileWidget *prwdgt = (ProfileWidget *)ptr->data;
@@ -239,12 +234,6 @@ static void rna_def_profilewidget(BlenderRNA *brna)
   RNA_def_property_ui_text(prop, "Points", "Profile widget control points");
   rna_def_profilewidget_points_api(brna, prop);
 
-  func = RNA_def_function(srna, "set_totsegments", "rna_ProfileWidget_totsegments_set");
-  parm = RNA_def_int(func, "totsegments", 1, 1, 1000, "", "The number of segment values to"
-                     " use when sampling the array", 1, 100);
-  RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED);
-  RNA_def_function_ui_description(func, "Set the number of segments to sample with");
-
   prop = RNA_def_property(srna, "totsegments", PROP_INT, PROP_NONE);
   RNA_def_property_int_sdna(prop, NULL, "totsegments");
   RNA_def_property_ui_text(prop, "Number of Segments", "The number of segments to sample from"



More information about the Bf-blender-cvs mailing list