2
0
Эх сурвалжийг харах

Merge pull request #11041 from gero3/CommentIncludes

Allow commenting out #includes
Mr.doob 8 жил өмнө
parent
commit
428935beb2

+ 1 - 1
src/renderers/webgl/WebGLProgram.js

@@ -152,7 +152,7 @@ function replaceLightNums( string, parameters ) {
 
 function parseIncludes( string ) {
 
-	var pattern = /#include +<([\w\d.]+)>/g;
+	var pattern = /^\s*#include +<([\w\d.]+)>/gm;
 
 	function replace( match, include ) {