2
0
ShiroSmith 6 жил өмнө
parent
commit
68f768fb74
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      hide/prefab/fx/FX.hx

+ 1 - 1
hide/prefab/fx/FX.hx

@@ -424,7 +424,7 @@ class FX extends hxd.prefab.Library {
 		getShaderAnims(ctx, this, fxanim.shaderAnims);
 		getEmitters(ctx, this, fxanim.emitters);
 
-		if(script != ""){
+		if(script != null && script != ""){
 			var parser = new FXScriptParser();
 			var fxScript = parser.createFXScript(script, fxanim);
 			fxanim.script = fxScript;