Add Cushion texture - thanks hotdog
[xonotic/xonotic-maps.pk3dir.git] / scripts / shader-parser.subr
index ef82832f427839513e1d036c5a5e7caedeec8f55..5f18cec84a90434f80a55540bfd15bf52c99b8b9 100644 (file)
@@ -4,7 +4,7 @@
 
 shader_normalize()
 {
-       echo "$1" | sed 's/\.\(tga\|jpg\|png\)$//'
+       echo "$1" | sed 's/^"//; s/"$//; s/\.\(tga\|jpg\|png\)$//'
 }
 
 parse_shaderstage_pre()