[Bf-blender-cvs] [8c7c9373e95] draw-deferred-compilation-experiment: Cleanup: remove unused curves toolsetting

Jacques Lucke noreply at git.blender.org
Thu Apr 21 11:14:12 CEST 2022


Commit: 8c7c9373e9571f200f32e47258188088edead1dc
Author: Jacques Lucke
Date:   Wed Apr 20 09:51:14 2022 +0200
Branches: draw-deferred-compilation-experiment
https://developer.blender.org/rB8c7c9373e9571f200f32e47258188088edead1dc

Cleanup: remove unused curves toolsetting

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

M	source/blender/makesdna/DNA_scene_types.h
M	source/blender/makesrna/intern/rna_sculpt_paint.c

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

diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index d6c1040110f..9a9aef16306 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -1021,16 +1021,10 @@ typedef enum CurvesSculptFlag {
 
 typedef struct CurvesSculpt {
   Paint paint;
-  /** Minimum distance between newly added curves on a surface. */
-  float distance;
-
   /** CurvesSculptFlag. */
   uint32_t flag;
-
   /** Length of newly added curves when it is not interpolated from other curves. */
   float curve_length;
-
-  char _pad[4];
 } CurvesSculpt;
 
 typedef struct UvSculpt {
diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 5c83a400cff..f416b024738 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -1571,13 +1571,6 @@ static void rna_def_curves_sculpt(BlenderRNA *brna)
   RNA_def_struct_path_func(srna, "rna_CurvesSculpt_path");
   RNA_def_struct_ui_text(srna, "Curves Sculpt Paint", "");
 
-  prop = RNA_def_property(srna, "distance", PROP_FLOAT, PROP_DISTANCE);
-  RNA_def_property_range(prop, 0.0f, FLT_MAX);
-  RNA_def_property_ui_range(prop, 0.0f, FLT_MAX, 1, 6);
-  RNA_def_property_ui_text(
-      prop, "Distance", "Radius around curves roots in which no new curves can be added");
-  RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
-
   prop = RNA_def_property(srna, "interpolate_length", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "flag", CURVES_SCULPT_FLAG_INTERPOLATE_LENGTH);
   RNA_def_property_ui_text(



More information about the Bf-blender-cvs mailing list