Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.3.3' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonHough committed Jul 11, 2023
2 parents b2ca3e0 + feb585e commit 4138709
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ This hotfix includes an updated avatar loader version.
## Changelog

### Fixed
- avatar loader version update to fix setup guide window
- an issue causing incorrect analytics event logging
4 changes: 2 additions & 2 deletions Editor/Module Management/ModuleList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class ModuleList
name = "com.readyplayerme.core",
gitUrl = "https://github.com/readyplayerme/rpm-unity-sdk-core.git",
branch = "",
version = "1.3.2"
version = "1.3.3"
};

/// <summary>
Expand All @@ -34,7 +34,7 @@ public static class ModuleList
name = "com.readyplayerme.avatarloader",
gitUrl = "https://github.com/readyplayerme/rpm-unity-sdk-avatar-loader.git",
branch = "",
version = "1.3.3"
version = "1.3.4"
},
new ModuleInfo
{
Expand Down
14 changes: 9 additions & 5 deletions Editor/Utils/EntryPoint.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using ReadyPlayerMe.Core.Analytics;
using UnityEditor;

namespace ReadyPlayerMe.Core.Editor
Expand All @@ -19,7 +20,11 @@ public static class EntryPoint
/// </summary>
static EntryPoint()
{
EditorApplication.update += Update;
if (!SessionState.GetBool(SESSION_STARTED_KEY, false))
{
SessionState.SetBool(SESSION_STARTED_KEY, true);
EditorApplication.update += Update;
}
}

/// <summary>
Expand All @@ -28,12 +33,11 @@ static EntryPoint()
/// </summary>
private static void Update()
{
if (SessionState.GetBool(SESSION_STARTED_KEY, false)) return;
SessionState.SetBool(SESSION_STARTED_KEY, true);

EditorApplication.update -= Update;
AnalyticsEditorLogger.EventLogger.LogOpenProject();
AnalyticsEditorLogger.EventLogger.IdentifyUser();
Startup?.Invoke();
ModuleUpdater.CheckForUpdates();
EditorApplication.update -= Update;
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.readyplayerme.core",
"version": "1.3.2",
"version": "1.3.3",
"displayName": "Ready Player Me Core",
"description": "Ready Player Me Core is responsible for module management and setting up the SDK for first time use.",
"unity": "2020.3",
Expand Down

0 comments on commit 4138709

Please sign in to comment.