diff options
author | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2018-11-08 22:53:44 +0300 |
---|---|---|
committer | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2018-11-08 22:53:44 +0300 |
commit | c1e0940687840d53aa4a3934f6a8dc18d6614df7 (patch) | |
tree | e41a5b684f0437b6c2cf0e816907819733f19719 | |
parent | d65bc48926b7ea3b2ae7a87db1b0a92f1537fea6 (diff) |
fixes 3dc->blender workflow bug
-rw-r--r-- | io_coat3D/__init__.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index 751e56f7..faccde85 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -738,7 +738,7 @@ class SCENE_OT_import(bpy.types.Operator): old_materials = bpy.data.materials.keys() old_objects = bpy.data.objects.keys() - bpy.ops.import_scene.fbx(filepath=new_applink_address) + bpy.ops.import_scene.fbx(filepath=new_applink_address, global_scale = 0.1,axis_forward='X', axis_up='Z') new_materials = bpy.data.materials.keys() new_objects = bpy.data.objects.keys() @@ -777,7 +777,7 @@ class SCENE_OT_import(bpy.types.Operator): mat_list.append(new_obj.material_slots[0].material) is_new = True - tex.matlab(mat_list, new_obj, bpy.context.scene, is_new) + tex.matlab(new_obj, mat_list, texturelist, is_new) for new_obj in bpy.context.collection.objects: if(new_obj.coat3D.applink_old == False): @@ -930,6 +930,9 @@ class ObjectCoat3D(PropertyGroup): objpath: StringProperty( name="Object_Path" ) + NoteGroup: StringProperty( + name="Object_Path" + ) obj_mat: StringProperty( name="Object_Path", default='' @@ -985,6 +988,10 @@ class ObjectCoat3D(PropertyGroup): name="Scale", description="Scale" ) +class MaterialCoat3D(PropertyGroup): + Nodegroup: StringProperty( + name="NodeGroup", + ) class SceneCoat3D(PropertyGroup): defaultfolder: StringProperty( |