chiark / gitweb /
Save the filename of loaded files so we can use that when saving to SD card. Make...
[cura.git] / Cura / util / meshLoaders / obj.py
index 6ce4f319d5800bdea3185d86524049cb26da3f0e..d872583a5afc59a56f1c595dba154682a66f7fc0 100644 (file)
@@ -1,10 +1,11 @@
 from __future__ import absolute_import
 __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
 
+import os
 from Cura.util import mesh
 
 def loadScene(filename):
-       obj = mesh.printableObject()
+       obj = mesh.printableObject(os.path.basename(filename))
        m = obj._addMesh()
 
        vertexList = []