- small updates to scripts and bpython docs, also fixed two warnings;
[blender-staging.git] / release / scripts / obj_export.py
index ecf081cf55cc9bc0d8e33d469f9d99b98ba31d44..ccbed6feae3f411262e664c9bfb039cc6a264c27 100644 (file)
@@ -65,7 +65,9 @@ from Blender import *
 NULL_MAT = '(null)' 
 
 def save_obj(filename): 
-    
+
+   if filename.find('.obj', -4) <= 0: filename += '.obj' # for safety
+
    file = open(filename, "w") 
     
    # Write Header