Fixing the VRML ImageTexture for the pending release, so that the image
authorChris Want <cwant@ualberta.ca>
Sun, 22 Jan 2006 17:33:26 +0000 (17:33 +0000)
committerChris Want <cwant@ualberta.ca>
Sun, 22 Jan 2006 17:33:26 +0000 (17:33 +0000)
file name gets written instead of the blend file name.

release/scripts/vrml97_export.py

index 968b081c10aa4a456b96276e5833ea105a20704b..41201d45315ef320b0cab30e676a2f0d9224c3f5 100644 (file)
@@ -648,7 +648,7 @@ class VRML2Export:
             return
         else:
             self.writeIndented("texture DEF %s ImageTexture {\n" % self.cleanStr(name), 1)
-            self.writeIndented("url \"%s\"\n" % filename.split("\\")[-1].split("/")[-1])
+            self.writeIndented("url \"%s\"\n" % name.split("\\")[-1].split("/")[-1])
             self.writeIndented("}\n",-1)
             self.texNames[name] = 1