Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/io/io_gpencil_import.c
| Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | static void ui_gpencil_import_svg_settings(uiLayout *layout, PointerRNA *imfptr) | ||||
| uiLayoutSetPropDecorate(layout, false); | uiLayoutSetPropDecorate(layout, false); | ||||
| uiLayout *col = uiLayoutColumn(layout, false); | uiLayout *col = uiLayoutColumn(layout, false); | ||||
| uiItemR(col, imfptr, "resolution", 0, NULL, ICON_NONE); | uiItemR(col, imfptr, "resolution", 0, NULL, ICON_NONE); | ||||
| uiItemR(col, imfptr, "scale", 0, NULL, ICON_NONE); | uiItemR(col, imfptr, "scale", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void wm_gpencil_import_svg_draw(bContext *UNUSED(C), wmOperator *op) | static void wm_gpencil_import_svg_draw(bContext *UNUSED(C), wmOperator *op) | ||||
| { | { | ||||
| PointerRNA ptr; | ui_gpencil_import_svg_settings(op->layout, op->ptr); | ||||
| RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr); | |||||
| ui_gpencil_import_svg_settings(op->layout, &ptr); | |||||
| } | } | ||||
| static bool wm_gpencil_import_svg_poll(bContext *C) | static bool wm_gpencil_import_svg_poll(bContext *C) | ||||
| { | { | ||||
| if ((CTX_wm_window(C) == NULL) || (CTX_data_mode_enum(C) != CTX_MODE_OBJECT)) { | if ((CTX_wm_window(C) == NULL) || (CTX_data_mode_enum(C) != CTX_MODE_OBJECT)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||