[Bf-blender-cvs] [82961a6634e] temp-gpencil-io: Remove ui_gpencil_export_common_settings

Antonio Vazquez noreply at git.blender.org
Tue Mar 23 18:23:33 CET 2021


Commit: 82961a6634e997f5c6b7439414b6450c45d33fcf
Author: Antonio Vazquez
Date:   Tue Mar 23 18:23:12 2021 +0100
Branches: temp-gpencil-io
https://developer.blender.org/rB82961a6634e997f5c6b7439414b6450c45d33fcf

Remove ui_gpencil_export_common_settings

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

M	source/blender/editors/io/io_gpencil_export.c

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

diff --git a/source/blender/editors/io/io_gpencil_export.c b/source/blender/editors/io/io_gpencil_export.c
index a1b4c564a3f..747fad5411a 100644
--- a/source/blender/editors/io/io_gpencil_export.c
+++ b/source/blender/editors/io/io_gpencil_export.c
@@ -85,19 +85,6 @@ static void gpencil_export_common_props_definition(wmOperatorType *ot)
                   "Export strokes with constant thickness");
 }
 
-static void ui_gpencil_export_common_settings(uiLayout *layout, PointerRNA *imfptr)
-{
-  uiLayout *box = uiLayoutBox(layout);
-  uiLayout *row = uiLayoutRow(box, false);
-  uiItemL(row, IFACE_("Export Options"), ICON_NONE);
-
-  uiLayout *col = uiLayoutColumn(box, false);
-  uiItemR(col, imfptr, "stroke_sample", 0, NULL, ICON_NONE);
-  uiItemR(col, imfptr, "use_fill", 0, NULL, ICON_NONE);
-  uiItemR(col, imfptr, "use_normalized_thickness", 0, NULL, ICON_NONE);
-  uiItemR(col, imfptr, "use_clip_camera", 0, NULL, ICON_NONE);
-}
-
 static void set_export_filepath(bContext *C, wmOperator *op)
 {
   if (!RNA_struct_property_is_set(op->ptr, "filepath")) {
@@ -215,7 +202,15 @@ static void ui_gpencil_export_svg_settings(uiLayout *layout, PointerRNA *imfptr)
   row = uiLayoutRow(box, false);
   uiItemR(row, imfptr, "selected_object_type", 0, NULL, ICON_NONE);
 
-  ui_gpencil_export_common_settings(layout, imfptr);
+  box = uiLayoutBox(layout);
+  row = uiLayoutRow(box, false);
+  uiItemL(row, IFACE_("Export Options"), ICON_NONE);
+
+  uiLayout *col = uiLayoutColumn(box, false);
+  uiItemR(col, imfptr, "stroke_sample", 0, NULL, ICON_NONE);
+  uiItemR(col, imfptr, "use_fill", 0, NULL, ICON_NONE);
+  uiItemR(col, imfptr, "use_normalized_thickness", 0, NULL, ICON_NONE);
+  uiItemR(col, imfptr, "use_clip_camera", 0, NULL, ICON_NONE);
 }
 
 static void wm_gpencil_export_svg_draw(bContext *UNUSED(C), wmOperator *op)



More information about the Bf-blender-cvs mailing list