Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions AGXUnity/IO/Environment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ private static void OnPlayerCli()

private static void OnCLI()
{
if ( LicenseManager.IsAssetImportWorkerProcess )
return;

if ( CommandLine.HasArg( CommandLine.Arg.GenerateOfflineActivation ) ) {
try {
var offlineLicenseIdCode = CommandLine.GetValues( CommandLine.Arg.GenerateOfflineActivation );
Expand Down
6 changes: 6 additions & 0 deletions AGXUnity/LicenseInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEditor;
using Math = System.Math;

namespace AGXUnity
Expand Down Expand Up @@ -88,6 +89,11 @@ public static LicenseInfo Create()
{
var info = new LicenseInfo();

#if UNITY_EDITOR
if ( AssetDatabase.IsAssetImportWorkerProcess() )
return info;
#endif

try {
info.Version = agx.agxSWIG.agxGetVersion( false );
if ( info.Version.ToLower().StartsWith( "agx-" ) )
Expand Down
Loading
Loading