Removed redundant tempfile
This commit is contained in:
parent
feb62ddae0
commit
191b150280
@ -531,8 +531,6 @@ class ATTRACT_OT_make_shot_thumbnail(AttractOperatorMixin,
|
|||||||
stop_upon_exception = True
|
stop_upon_exception = True
|
||||||
|
|
||||||
async def async_execute(self, context):
|
async def async_execute(self, context):
|
||||||
import tempfile
|
|
||||||
|
|
||||||
# Later: for strip in context.selected_sequences:
|
# Later: for strip in context.selected_sequences:
|
||||||
strip = active_strip(context)
|
strip = active_strip(context)
|
||||||
atc_object_id = getattr(strip, 'atc_object_id', None)
|
atc_object_id = getattr(strip, 'atc_object_id', None)
|
||||||
@ -541,7 +539,6 @@ class ATTRACT_OT_make_shot_thumbnail(AttractOperatorMixin,
|
|||||||
self.quit()
|
self.quit()
|
||||||
return
|
return
|
||||||
|
|
||||||
with tempfile.NamedTemporaryFile() as tmpfile:
|
|
||||||
with thumbnail_render_settings(context):
|
with thumbnail_render_settings(context):
|
||||||
bpy.ops.render.render()
|
bpy.ops.render.render()
|
||||||
file_id = await self.upload_via_tempdir(bpy.data.images['Render Result'],
|
file_id = await self.upload_via_tempdir(bpy.data.images['Render Result'],
|
||||||
|
Reference in New Issue
Block a user