- CMake now only uses SOURCE_GROUP with MSVC lib configuration, saves recursive heade...
[blender.git] / release / scripts / op / uv.py
index 17520ff6d77c7d137645617fc8a6f55c2bd7d287..597421f305a5177c69f7b3a7d651602b1b06053d 100644 (file)
@@ -355,7 +355,9 @@ class ExportUVLayout(bpy.types.Operator):
 
 
     def invoke(self, context, event):
+        import os
         self.size = self._image_size(context)
+        self.filepath = os.path.splitext(bpy.data.filepath)[0]
         wm = context.window_manager
         wm.add_fileselect(self)
         return {'RUNNING_MODAL'}