Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/editors/gpencil/gpencil_interpolate.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/source/blender/editors/gpencil/gpencil_interpolate.c b/source/blender/editors/gpencil/gpencil_interpolate.c
index 1281f1392d8..bfa1ee6bcaf 100644
--- a/source/blender/editors/gpencil/gpencil_interpolate.c
+++ b/source/blender/editors/gpencil/gpencil_interpolate.c
@@ -1427,15 +1427,26 @@ static void gpencil_interpolate_seq_ui(bContext *C, wmOperator *op)
uiLayoutSetPropSep(layout, true);
uiLayoutSetPropDecorate(layout, false);
+ row = uiLayoutRow(layout, true);
+ uiItemR(row, &ptr, "step", 0, NULL, ICON_NONE);
+
+ row = uiLayoutRow(layout, true);
+ uiItemR(row, &ptr, "layers", 0, NULL, ICON_NONE);
+
+ if (CTX_data_mode_enum(C) == CTX_MODE_EDIT_GPENCIL) {
+ row = uiLayoutRow(layout, true);
+ uiItemR(row, &ptr, "interpolate_selected_only", 0, NULL, ICON_NONE);
+ }
+
+ row = uiLayoutRow(layout, true);
+ uiItemR(row, &ptr, "flip", 0, NULL, ICON_NONE);
col = uiLayoutColumn(layout, true);
- uiItemR(col, &ptr, "step", 0, NULL, ICON_NONE);
- uiItemR(col, &ptr, "layers", 0, NULL, ICON_NONE);
- uiItemR(col, &ptr, "interpolate_selected_only", 0, NULL, ICON_NONE);
- uiItemR(col, &ptr, "flip", 0, NULL, ICON_NONE);
uiItemR(col, &ptr, "smooth_factor", 0, NULL, ICON_NONE);
uiItemR(col, &ptr, "smooth_steps", 0, NULL, ICON_NONE);
- uiItemR(col, &ptr, "type", 0, NULL, ICON_NONE);
+
+ row = uiLayoutRow(layout, true);
+ uiItemR(row, &ptr, "type", 0, NULL, ICON_NONE);
if (type == GP_IPO_CURVEMAP) {
/* Get an RNA pointer to ToolSettings to give to the custom curve. */