ShiroSmith 6 năm trước cách đây
mục cha
commit
68f768fb74
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;