Implement early testing for serialize operator (not functional)

All the right code seems to be in place, but it seems the package won't go through with the serialize function because of read/write permissions (ERRNO 13)
This commit is contained in:
Trashman247
2023-06-25 23:56:15 -07:00
parent 4a04411262
commit 38788cc95b
5 changed files with 20 additions and 0 deletions
@@ -189,3 +189,10 @@ class RemoveBrick(bpy.types.Operator, Operator):
library=tool.Ifc.get().by_id(int(props.libraries)) if props.libraries else None,
brick_uri=props.bricks[props.active_brick_index].uri,
)
class SerializeBrick(bpy.types.Operator, Operator):
bl_idname = "bim.serialize_brick"
bl_label = "Serialize Brick"
def _execute(self, context):
core.serialize_brick(tool.Brick)