Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
c66485ba1a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/build/build.py

+ 1 - 1
utils/build/build.py

@@ -62,7 +62,7 @@ def main(argv=None):
 				if filename.endswith(".glsl"):
 					tmp.write(u'THREE.ShaderChunk[ \'' + os.path.splitext(os.path.basename(filename))[0] + u'\'] = "')
 					text = f.read()
-					text = re.sub(r"\t*//.*\n", "", text) # strip comments
+					text = re.sub(r"\t*//.*\n", "", text) # remove //
 					text = re.sub(r"\t*\/\*[\s\S]*\*\/\n", "", text) # remove /* */
 					text = re.sub(r"\n+", '\\\\n', text) # line breaks to \n
 					tmp.write(text)