Skip to content

Commit

Permalink
Merge pull request #14 from VRLabs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jellejurre authored Nov 13, 2024
2 parents 36e4be4 + 4103d03 commit cc7e2ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Instancer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
Expand All @@ -15,7 +15,7 @@ public class Instancer : MonoBehaviour

static Instancer()
{
renameInstances = PlayerPrefs.GetString("VRLabs.Instancer.RenameInstances", "True") == "True"; ;
renameInstances = PlayerPrefs.GetString("VRLabs.Instancer.RenameInstances", "False") == "True"; ;
}

[MenuItem("VRLabs/Rename new Instances", priority = 1)]
Expand Down Expand Up @@ -173,6 +173,7 @@ static string GetSourceFolder(string installFilePath)
#if UNITY_2019
while (!File.Exists("." + sourceFolder + "/package.json"))
#else
if (sourceFolder.StartsWith("/Assets")) sourceFolder = sourceFolder.Replace("/Assets", "./Assets");
while (!File.Exists(sourceFolder + "/package.json"))
#endif
{
Expand Down

0 comments on commit cc7e2ff

Please sign in to comment.