diff options
Diffstat (limited to 'release/scripts/io/export_obj.py')
-rw-r--r-- | release/scripts/io/export_obj.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/io/export_obj.py b/release/scripts/io/export_obj.py index 4451cb77a1b..6b47f6ddb54 100644 --- a/release/scripts/io/export_obj.py +++ b/release/scripts/io/export_obj.py @@ -193,7 +193,7 @@ def copy_images(dest_dir): # if bpy.sys.exists(image_path): # # Make a name for the target path. # dest_image_path = dest_dir + image_path.split('\\')[-1].split('/')[-1] -# if not bpy.utils.exists(dest_image_path): # Image isnt alredy there +# if not bpy.utils.exists(dest_image_path): # Image isnt already there # print('\tCopying "%s" > "%s"' % (image_path, dest_image_path)) # copy_file(image_path, dest_image_path) # copyCount+=1 @@ -299,7 +299,7 @@ def write(filepath, objects, scene, EXPORT_POLYGROUPS=False, EXPORT_CURVE_AS_NURBS=True): ''' - Basic write function. The context and options must be alredy set + Basic write function. The context and options must be already set This can be accessed externaly eg. write( 'c:\\test\\foobar.obj', Blender.Object.GetSelected() ) # Using default options. @@ -681,7 +681,7 @@ def write(filepath, objects, scene, # CHECK FOR CONTEXT SWITCH if key == contextMat: - pass # Context alredy switched, dont do anything + pass # Context already switched, dont do anything else: if key[0] == None and key[1] == None: # Write a null material, since we know the context has changed. @@ -964,7 +964,7 @@ class ExportOBJ(bpy.types.Operator): def menu_func(self, context): - default_path = bpy.data.filepath.replace(".blend", ".obj") + default_path = os.path.splitext(bpy.data.filepath)[0] + ".obj" self.layout.operator(ExportOBJ.bl_idname, text="Wavefront (.obj)").filepath = default_path |