Skip to content

Commit 5796eae

Browse files
committed
fix: Mac/Linux: Fixed a command-related error message in the importer inspector even when the command is correct
1 parent a7f1ae6 commit 5796eae

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Assets/LDtkUnity/Editor/CustomEditor/Importer/LDtkEditorCommandUpdater.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,6 @@ public bool HasCustomCommand(LdtkJson data, out string reason)
287287
return false;
288288
}
289289

290-
//ensure that there is a 2nd arg.
291-
string[] split = Regex.Matches(command.Command, @"[\""].+?[\""]|[^ ]+")
292-
.Cast<Match>()
293-
.Select(m => m.Value)
294-
.ToArray();
295-
296-
if (split.Length != 2 || split[1] != $"\"{ProjectName}\"")
297-
{
298-
reason = $"The command exists, but doesn't have a single parameter of the project name." +
299-
$"\n" +
300-
$"The command was this:\n{command.Command}";
301-
return false;
302-
}
303-
304290
reason = null;
305291
return true;
306292
}

0 commit comments

Comments
 (0)