Browse Source

fixed adding group in table break script type checking

Nicolas Cannasse 4 năm trước cách đây
mục cha
commit
bd3e54d187
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      hide/comp/ScriptEditor.hx

+ 6 - 2
hide/comp/ScriptEditor.hx

@@ -58,8 +58,12 @@ class ScriptChecker {
 			var config = config.get("script.api");
 			if( config == null ) continue;
 			var api = (config : GlobalsDef).get(path);
-			if( api == null ) continue;
-			apis.unshift(api);
+			if( api == null ) {
+				path = ~/\[group=[^\]]+?\]/g.replace(path,"");
+				api = (config : GlobalsDef).get(path);
+			}
+			if( api != null )
+				apis.unshift(api);
 		}
 
 		var cdbPack : String = config.get("script.cdbPackage");