From 6a09af70f23226e96bd1c181dcd20eca41665460 Mon Sep 17 00:00:00 2001
From: Kalle-Samuli Riihikoski <haikalle@gmail.com>
Date: Mon, 5 Sep 2011 08:11:02 +0000
Subject: [PATCH] rotation error in 3d-coat->blender workflow fixed.

---
 io_coat3D/coat.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py
index 60ac85993..930efb3f8 100644
--- a/io_coat3D/coat.py
+++ b/io_coat3D/coat.py
@@ -442,6 +442,7 @@ class SCENE_OT_import3b(bpy.types.Operator):
             import_no = 0
         else:
             bpy.ops.import_scene.obj(filepath=obj_path,axis_forward='X',axis_up='Y')
+            bpy.ops.object.transform_apply(rotation=True)
             new_obj = scene.objects[0]
             scene.objects[0].coat3D.objectdir = export
             if(path_on):
-- 
GitLab