From 959e83229bcbbc9c541ecd8babf3c006afca9987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 6 Jul 2016 16:25:31 +0200 Subject: [PATCH] Allow execution of the file sharing operator (rather than requiring INVOKE_DEFAULT) --- blender_cloud/image_sharing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blender_cloud/image_sharing.py b/blender_cloud/image_sharing.py index 578b3d5..26d39c0 100644 --- a/blender_cloud/image_sharing.py +++ b/blender_cloud/image_sharing.py @@ -74,6 +74,9 @@ class PILLAR_OT_image_share(pillar.PillarOperatorMixin, self._new_async_task(self.async_execute(context)) return {'RUNNING_MODAL'} + def execute(self, context): + return self.invoke(context, None) + async def async_execute(self, context): """Entry point of the asynchronous operator."""