Skip to content

Commit

Permalink
Merge branch 'main' into avatar_root_true_xp
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikoga committed Jan 18, 2024
2 parents 52a6695 + 0e3ca7f commit 5afac04
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

### Fixed
- Normalize the representation of the "default language" locale (#124)

### Changed
- Adjusted hook processing order to improve compatibility with VRCFury (#122)

### Removed

### Security

### Deprecated

## [1.3.0-rc.3] - [2024-01-14]

### Changed
- Adjusted hook processing order to improve compatibility with VRCFury (#122)

## [1.3.0-rc.2] - [2024-01-07]

### Added
Expand Down
2 changes: 1 addition & 1 deletion Editor/UI/Localization/Localizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public sealed class Localizer
/// <param name="loader"></param>
public Localizer(string defaultLanguage, Func<List<(string, Func<string, string>)>> loader)
{
DefaultLanguage = defaultLanguage;
DefaultLanguage = CultureInfo.GetCultureInfo(defaultLanguage).Name;
LanguagePrefs.RegisterLanguage(defaultLanguage);

_localizationLoader = loader;
Expand Down
3 changes: 2 additions & 1 deletion Editor/VRChat/BuildFrameworkPreprocessHook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ internal class ContextHolder : MonoBehaviour

internal class BuildFrameworkPreprocessHook : IVRCSDKPreprocessAvatarCallback
{
public int callbackOrder => -5000;
// Must run before -10000 (VRCFury)
public int callbackOrder => -11000;

public bool OnPreprocessAvatar(GameObject avatarGameObject)
{
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Passes are grouped into execution phases, which execute in the following order:
* Resolving - This is intended to run before any editor extensions modify the avatar, and is useful for rehydrating components with serialized state that need to refer to the pre-transformation avatar (e.g. if you have a path serialized to a string which you need to resolve to an object before objects start moving around)
* Generating - This is intended to run before editor extensions which primarily generate new objects and components for use by other systems.
* Transforming - This is intended as the "general-purpose" execution phase, where most extensions which transform avatars run.
* Optimization - This is intended as an execution phase for optimization plugins which aren't intended to modify the avatar in a semantically-meaningful way.
* Optimizing - This is intended as an execution phase for optimization plugins which aren't intended to modify the avatar in a semantically-meaningful way.

Within each phase, passes are always executed in the order in which they are declared in the plugin definition. However, depending on dependency declarations, passes from other plugins can be injected between your passes.

Expand Down
2 changes: 1 addition & 1 deletion Runtime/ApplyOnPlayGlobalActivator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal static bool IsAv3EmuActive()
foreach (var root in scene.GetRootGameObjects())
foreach (var emulator in root.GetComponentsInChildren<LyumaAv3Emulator>())
{
if (emulator.isActiveAndEnabled && emulator.RunPreprocessAvatarHook)
if (emulator.enabled && emulator.gameObject.activeInHierarchy && emulator.RunPreprocessAvatarHook)
{
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nadena.dev.ndmf",
"displayName": "Non-Destructive Modular Framework",
"version": "1.3.0-rc.2",
"version": "1.3.0-rc.3",
"unity": "2019.4",
"description": "A framework for building non-destructive plugins for VRChat Avatar 3.0",
"vrchatVersion": "2022.1.1",
Expand Down

0 comments on commit 5afac04

Please sign in to comment.