Browse Source

fixed adding group in table break script type checking

Nicolas Cannasse 4 years ago
parent
commit
bd3e54d187
1 changed files with 6 additions and 2 deletions
  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");