From 4a8e03862b43ea66273dc51c117fcfb6a88e3667 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sat, 20 Mar 2021 20:04:10 +1100 Subject: [PATCH] Improve usability that you can run a patch recipe without providing arguments. See #1393. --- src/ifcblenderexport/blenderbim/bim/module/patch/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcblenderexport/blenderbim/bim/module/patch/operator.py b/src/ifcblenderexport/blenderbim/bim/module/patch/operator.py index 4566891401..7943237e64 100644 --- a/src/ifcblenderexport/blenderbim/bim/module/patch/operator.py +++ b/src/ifcblenderexport/blenderbim/bim/module/patch/operator.py @@ -45,7 +45,7 @@ class ExecuteIfcPatch(bpy.types.Operator): "input": context.scene.BIMPatchProperties.ifc_patch_input, "output": context.scene.BIMPatchProperties.ifc_patch_output, "recipe": context.scene.BIMPatchProperties.ifc_patch_recipes, - "arguments": json.loads(context.scene.BIMPatchProperties.ifc_patch_args), + "arguments": json.loads(context.scene.BIMPatchProperties.ifc_patch_args or "[]"), "log": context.scene.BIMProperties.data_dir + "process.log", } )