[Bf-blender-cvs] [b2e6a3d1675] temp-gpencil-bezier-stroke-type: GPencil: Add adaptive prop to UI

Falk David noreply at git.blender.org
Sun Apr 4 11:20:31 CEST 2021


Commit: b2e6a3d16753be3bf13ad646be27820a00bf18b6
Author: Falk David
Date:   Sun Apr 4 11:20:19 2021 +0200
Branches: temp-gpencil-bezier-stroke-type
https://developer.blender.org/rBb2e6a3d16753be3bf13ad646be27820a00bf18b6

GPencil: Add adaptive prop to UI

The "Adaptive" option was not exposed in the UI anymore.
Also fix the tooltips to be more correct.

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

M	release/scripts/startup/bl_ui/properties_data_gpencil.py
M	source/blender/makesrna/intern/rna_gpencil.c

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

diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py b/release/scripts/startup/bl_ui/properties_data_gpencil.py
index 69720a6c54b..4735d448972 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -379,7 +379,10 @@ class DATA_PT_gpencil_strokes(DataButtonsPanel, Panel):
         sub.active = gpd.stroke_thickness_space == 'WORLDSPACE'
         sub.prop(gpd, "pixel_factor", text="Thickness Scale")
 
-        col.prop(gpd, "edit_curve_resolution")
+        col.separator()
+
+        col.prop(gpd, "edit_curve_resolution", text="Bézier Stroke Resolution")
+        col.prop(gpd, "use_adaptive_curve_resolution", text="Adaptive")
 
 
 class DATA_PT_gpencil_display(DataButtonsPanel, Panel):
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index 137ebbb09c6..6f7db7839e9 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -2471,8 +2471,8 @@ static void rna_def_gpencil_data(BlenderRNA *brna)
   RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0);
   RNA_def_property_ui_text(
       prop,
-      "Curve Resolution",
-      "Number of segments generated between control points when editing strokes in curve mode");
+      "Bézier Curve Resolution",
+      "Number of segments generated between control points");
   RNA_def_property_update(
       prop, NC_GPENCIL | ND_DATA, "rna_GPencil_stroke_curve_update");



More information about the Bf-blender-cvs mailing list