From 3faefdc849b9a8c92e73d4cf07b53787b3741ae3 Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Tue, 29 Dec 2020 15:53:47 +0100 Subject: [PATCH] set OBJECT mode before export --- io_export_psx_tmesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_export_psx_tmesh.py b/io_export_psx_tmesh.py index 77d322e..157b3ce 100644 --- a/io_export_psx_tmesh.py +++ b/io_export_psx_tmesh.py @@ -23,7 +23,7 @@ class ExportMyFormat(bpy.types.Operator, ExportHelper): def execute(self, context): # Leave edit mode to avoid errors - bpy.ops.object.editmode_toggle() + bpy.ops.object.mode_set(mode='OBJECT') scale = 20 f = open(os.path.normpath(self.filepath),"w+")