[Bf-blender-cvs] [6ab551ecd9d] greasepencil-object: GPencil: Hide Gray Scale in SVG export
Antonio Vazquez
noreply at git.blender.org
Thu Aug 13 11:27:06 CEST 2020
Commit: 6ab551ecd9d3e3f6a01f63c621fdc36aa6078cf7
Author: Antonio Vazquez
Date: Thu Aug 13 11:26:58 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rB6ab551ecd9d3e3f6a01f63c621fdc36aa6078cf7
GPencil: Hide Gray Scale in SVG export
This option is only valid in Storyboards.
===================================================================
M source/blender/editors/io/io_gpencil.c
===================================================================
diff --git a/source/blender/editors/io/io_gpencil.c b/source/blender/editors/io/io_gpencil.c
index 653d46d8931..247ecccfe32 100644
--- a/source/blender/editors/io/io_gpencil.c
+++ b/source/blender/editors/io/io_gpencil.c
@@ -97,15 +97,16 @@ static void gpencil_export_common_props(wmOperatorType *ot)
false,
"Gray Scale",
"Export in gray scale instead of full color");
- RNA_def_float(ot->srna,
- "stroke_sample",
- 0.0f,
- 0.0f,
- 100.0f,
- "Sampling",
- "Precision of sampling stroke, set to zero to disable",
- 0.0f,
- 100.0f);
+ RNA_def_float(
+ ot->srna,
+ "stroke_sample",
+ 0.0f,
+ 0.0f,
+ 100.0f,
+ "Sampling",
+ "Precision of sampling stroke, low values gets more precise result, zero to disable",
+ 0.0f,
+ 100.0f);
}
static ARegion *get_invoke_region(bContext *C)
@@ -154,13 +155,16 @@ static void ui_gpencil_export_common_settings(uiLayout *layout,
col = uiLayoutColumn(box, false);
sub = uiLayoutColumn(col, true);
+ uiItemR(sub, imfptr, "stroke_sample", 0, NULL, ICON_NONE);
uiItemR(sub, imfptr, "use_fill", 0, NULL, ICON_NONE);
uiItemR(sub, imfptr, "use_normalized_thickness", 0, NULL, ICON_NONE);
- uiItemR(sub, imfptr, "use_gray_scale", 0, NULL, ICON_NONE);
+
if (!story) {
uiItemR(sub, imfptr, "use_clip_camera", 0, NULL, ICON_NONE);
}
- uiItemR(sub, imfptr, "stroke_sample", 0, NULL, ICON_NONE);
+ else {
+ uiItemR(sub, imfptr, "use_gray_scale", 0, NULL, ICON_NONE);
+ }
}
static bool wm_gpencil_export_common_check(bContext *UNUSED(C), wmOperator *op)
More information about the Bf-blender-cvs
mailing list