Skip to content

Commit

Permalink
chore: add version defines for VRCSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikoga committed Oct 27, 2024
1 parent 56c1fdd commit f87fc94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Editor/NewGameObjectAndAddComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ private static void CreateAndAddComponent<T>(string componentName) where T : Mon
[MenuItem(BASE_PATH + MERGE_PHYSBONE, true, PRIORITY)]
private static bool ValidateCreateMergePhysBone() => Selection.activeGameObject != null;

#if AAO_VRCSDK3_AVATARS
[MenuItem(BASE_PATH + MERGE_PHYSBONE, false, PRIORITY)]
private static void CreateMergePhysBone() => CreateAndAddComponent<MergePhysBone>(MERGE_PHYSBONE);
#endif
}
}
2 changes: 2 additions & 0 deletions Editor/ObjectMapping/ObjectMappingContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ public void OnDeactivate(BuildContext context)
switch (component)
{
case Animator _:
#if AAO_VRCSDK3_AVATARS
case VRC.SDK3.Avatars.Components.VRCAvatarDescriptor _:
#endif
#if AAO_VRM0
case VRM.VRMBlendShapeProxy _:
#endif
Expand Down

0 comments on commit f87fc94

Please sign in to comment.