提交 a807822d 编写于 作者: M Mr.doob

Build: Strip /* */

上级 62e2bc7e
......@@ -63,6 +63,7 @@ def main(argv=None):
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*\/\*[\s\S]*\*\/\n", "", text) # remove /* */
text = re.sub(r"\n+", '\\\\n', text) # line breaks to \n
tmp.write(text)
tmp.write(u'";\n\n')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册