Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle-Samuli Riihikoski <haikalle@gmail.com>2011-06-08 10:36:35 +0400
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2011-06-08 10:36:35 +0400
commita06a47b218d703b29a694fec000f9d0bf031da0f (patch)
tree73827675641a0ec0847425a378c2c717cd20fb65 /io_coat3D
parent0738c30426974cbd442e832571d0681d74c33d80 (diff)
Axis were wrong.
Diffstat (limited to 'io_coat3D')
-rw-r--r--io_coat3D/coat.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py
index 9d793197..e9979185 100644
--- a/io_coat3D/coat.py
+++ b/io_coat3D/coat.py
@@ -1,3 +1,4 @@
+
# ***** BEGIN GPL LICENSE BLOCK *****
#
#
@@ -238,7 +239,7 @@ class SCENE_OT_export(bpy.types.Operator):
bpy.ops.export_scene.obj(filepath=checkname,use_selection=True,
use_apply_modifiers=coat3D.exportmod,use_blen_objects=False, group_by_material= True,
- use_materials = False,keep_vertex_order = True,axis_forward='Y',axis_up='Z')
+ use_materials = False,keep_vertex_order = True,axis_forward='X',axis_up='Y')
bpy.ops.object.origin_set(type='ORIGIN_GEOMETRY', center='MEDIAN')
coa.export_on = True
@@ -253,7 +254,7 @@ class SCENE_OT_export(bpy.types.Operator):
bpy.ops.export_scene.obj(filepath=checkname,use_selection=True,
use_apply_modifiers=coat3D.exportmod,use_blen_objects=False, group_by_material= True,
- use_materials = False,keep_vertex_order = True,axis_forward='Y',axis_up='Z')
+ use_materials = False,keep_vertex_order = True,axis_forward='X',axis_up='Y')
obj.location = coat3D.loca
obj.rotation_euler = coat3D.rota
@@ -330,7 +331,7 @@ class SCENE_OT_import(bpy.types.Operator):
os.remove(mtl)
- bpy.ops.import_scene.obj(filepath=act_name.coat3D.objectdir,axis_forward='Y',axis_up='Z')
+ bpy.ops.import_scene.obj(filepath=act_name.coat3D.objectdir,axis_forward='X',axis_up='Y')
obj_proxy = scene.objects[0]
bpy.ops.object.select_all(action='TOGGLE')
obj_proxy.select = True
@@ -457,7 +458,7 @@ class SCENE_OT_import3b(bpy.types.Operator):
new_obj = palikka
import_no = 0
else:
- bpy.ops.import_scene.obj(filepath=obj_path,axis_forward='Y',axis_up='Z')
+ bpy.ops.import_scene.obj(filepath=obj_path,axis_forward='X',axis_up='Y')
new_obj = scene.objects[0]
scene.objects[0].coat3D.objectdir = export
if(path_on):