diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-19 16:43:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-19 16:52:59 +0300 |
commit | 8245805ce3dd23386d7a478ae2f4cfba3b503334 (patch) | |
tree | 1c6b69980d78fa5bfe12713bbee5e73ed697cf6f /source/blender/editors/io/io_gpencil_export.c | |
parent | 33f218fa3f93a3d574d81d65628188921d6f100c (diff) |
Fix creating operator properties without an owner_id
Any dynamic enum access would not use the callback.
Always set the owner_id to avoid this causing problems.
Oversight in 919558854d624f5db40acfa9f5674ac8c94873b6
Diffstat (limited to 'source/blender/editors/io/io_gpencil_export.c')
-rw-r--r-- | source/blender/editors/io/io_gpencil_export.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/editors/io/io_gpencil_export.c b/source/blender/editors/io/io_gpencil_export.c index 10e4e598bad..7b4b59902f9 100644 --- a/source/blender/editors/io/io_gpencil_export.c +++ b/source/blender/editors/io/io_gpencil_export.c @@ -215,11 +215,12 @@ static void ui_gpencil_export_svg_settings(uiLayout *layout, PointerRNA *imfptr) uiItemR(col, imfptr, "use_clip_camera", 0, NULL, ICON_NONE); } -static void wm_gpencil_export_svg_draw(bContext *UNUSED(C), wmOperator *op) +static void wm_gpencil_export_svg_draw(bContext *C, wmOperator *op) { + wmWindowManager *wm = CTX_wm_manager(C); PointerRNA ptr; - RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr); + RNA_pointer_create(&wm->id, op->type->srna, op->properties, &ptr); ui_gpencil_export_svg_settings(op->layout, &ptr); } @@ -377,11 +378,12 @@ static void ui_gpencil_export_pdf_settings(uiLayout *layout, PointerRNA *imfptr) uiItemR(sub, imfptr, "use_normalized_thickness", 0, NULL, ICON_NONE); } -static void wm_gpencil_export_pdf_draw(bContext *UNUSED(C), wmOperator *op) +static void wm_gpencil_export_pdf_draw(bContext *C, wmOperator *op) { + wmWindowManager *wm = CTX_wm_manager(C); PointerRNA ptr; - RNA_pointer_create(NULL, op->type->srna, op->properties, &ptr); + RNA_pointer_create(&wm->id, op->type->srna, op->properties, &ptr); ui_gpencil_export_pdf_settings(op->layout, &ptr); } |