diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-19 20:19:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-19 20:19:08 +0400 |
commit | 9ac0a714bee5df2153e0a73bb55962139ba18eb2 (patch) | |
tree | 029104d14b7e942dd616bf8443e09d0461ac6350 /io_coat3D | |
parent | 5e44117da5a35882e7f3919f4c48c234acebe045 (diff) |
indentation edits and copy pyrimid from contrib (where I had made some edits), removed so this wont happen again.
Diffstat (limited to 'io_coat3D')
-rw-r--r-- | io_coat3D/coat.py | 5 | ||||
-rw-r--r-- | io_coat3D/tex.py | 16 |
2 files changed, 10 insertions, 11 deletions
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py index f7684a24..ffe7fa93 100644 --- a/io_coat3D/coat.py +++ b/io_coat3D/coat.py @@ -532,8 +532,7 @@ class VIEW3D_MT_Coat_Dynamic_Menu(bpy.types.Menu): layout.operator("import3b_applink.pilgway_3d_coat", text="Bring from 3D-Coat") layout.separator() else: - if(os.path.isfile(Blender_export)): - + if(os.path.isfile(Blender_export)): layout.operator("import3b_applink.pilgway_3d_coat", text="Bring from 3D-Coat") layout.separator() @@ -561,7 +560,7 @@ class VIEW3D_MT_ExportMenu(bpy.types.Menu): layout.operator_context = 'INVOKE_REGION_WIN' layout.prop(coat3D,"exportover") if(coat3D.exportover): - layout.prop(coat3D,"exportmod") + layout.prop(coat3D,"exportmod") class VIEW3D_MT_ExtraMenu(bpy.types.Menu): bl_label = "Extra" diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py index cd3c6e74..2e1d9f14 100644 --- a/io_coat3D/tex.py +++ b/io_coat3D/tex.py @@ -21,12 +21,12 @@ import bpy import os def find_index(objekti): - luku = 0 - for tex in objekti.active_material.texture_slots: - if(not(hasattr(tex,'texture'))): - break - luku = luku +1 - return luku + luku = 0 + for tex in objekti.active_material.texture_slots: + if(not(hasattr(tex,'texture'))): + break + luku = luku +1 + return luku def gettex(mat_list, objekti, scene,export): @@ -67,9 +67,9 @@ def gettex(mat_list, objekti, scene,export): tex_slot.texture.image.reload() else: if(os.sys.platform == 'win32'): - osoite = os.path.expanduser("~") + os.sep + 'Documents' + os.sep + '3DC2Blender' + os.sep + 'Textures' + os.sep + soite = os.path.expanduser("~") + os.sep + 'Documents' + os.sep + '3DC2Blender' + os.sep + 'Textures' + os.sep else: - osoite = os.path.expanduser("~") + os.sep + '3DC2Blender' + os.sep + 'Textures' + os.sep + osoite = os.path.expanduser("~") + os.sep + '3DC2Blender' + os.sep + 'Textures' + os.sep ki = os.path.split(coa.applink_name)[1] ko = os.path.splitext(ki)[0] just_nimi = ko + '_' |