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

allow #if editor in dynamic shaders

Nicolas Cannasse 4 жил өмнө
parent
commit
e108d105d1

+ 1 - 0
hide/tools/ShaderLoader.hx

@@ -82,6 +82,7 @@ class ShaderLoader {
 
 	function loadShaderString( file : String, content : String, name : String ) {
 		var parser = new hscript.Parser();
+		parser.preprocesorValues.set("editor", true);
 		var decls = parser.parseModule(content, file);
 		var cl = null, cf = null;
 		for( d in decls ) {