Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 000/plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed Sep 17, 2023
2 parents f0aad41 + 685e690 commit b55fa35
Show file tree
Hide file tree
Showing 82 changed files with 1,473 additions and 1,916 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout logo assets
uses: actions/checkout@v3
uses: actions/checkout@v4
if: startsWith(github.ref, 'refs/tags/')
with:
repository: bdunderscore/modular-avatar-images
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
with:
node-version: 18

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.ref }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: bdunderscore/modular-avatar-images
path: modular-avatar-images
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/export-gameci-license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Export GameCI license
on:
workflow_dispatch: {}

jobs:
export:
runs-on: ubuntu-latest
steps:
- name: Setup
run: |
sudo apt-get -y install gnupg
gpg --import <<EOF
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGT9rngBDAC92NQAEUXfPlYHESpYjovuSjTwxZBy8R1NR/8czcEnnNUSo09z
ygzyRpgvxar5wL00WNY3cF03vXURJCV2FQYrsJEt0zAEQ+hTxwpVFcGjGr4ttI4+
HW/kDXeWgH/Fk72eiv6KwmTSVEnjMQAGMOnpPgPxh9Brj0n3wQjp9WinEwRX2gFn
gSoOQy6tLWtyLD6rYHDvAZ5FpSuuLqZfc3miHPcrs62IpeE6MaC4FGy7QLCnkL3X
JBKYY4Y3/nsiNUv+I2U8laJ1CkUDZfoJ/t6XP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7VO4BGmdDGp+f9n4tOa7ieDiH0LIsKkj/nVa2chPnvycruNtgOLQ3iusy
7DhlacdKFN56n1/somuhfk0t6bIEI3b0d4c2Htu81Xtpm8bkzhwmm9fw6bTBjTjh
UtFraj2vmybfujqqofh0FHDz8BJsrZYkQtKmnBGR+9HWGiWuEVx2lQHj4xN/7E8d
I+liA+sJtPON3lfBybsEkTx0GwPmwvZ2LnC7dCx8v/aMQMPy7AsnP2SxAkKPKJc7
hIeAkobTbQjBHuk+PelimnvUdmdPg+RR4eUDmpCOlRib6x3WKnadOafsO96hAoUg
kbcwwlML3TQSauBVbov1ZlLYtXpCQalX0DwdGWvHDHFTXSyvY0IJ36vCFwARAQAB
iQG8BBgBCgAmFiEEIKhD8nFChrS3oMf4s7oHfG4FtC4FAmT9rngCGwwFCQPCZwAA
CgkQs7oHfG4FtC4cVwv/QHDqWDfJXXRArbsn+n/xofgnt1sB2KwvRaA/DQpI5zk8
AFXbqwPClIf+8kvTgGEgDdIBAmLcj5ZEqbu5Y25sbSlNY4Kbk1nYSwan3Jwpakgo
04zwPiThLO0kboJ+dsu4TUX8qN1hYRcgomHDe1DocVsvX4Bp+JA809+iCk5FKD95
OKeeo++Ulyzigf49qUe70HkqI+LYo4S5nN+EyiqMrcjh4NXDgJkPxt/rCClQVbVi
zotM3zo5iqy8sV/GsVzIr6LapxIvfIvrgcchShwLMhl7xy9WhaASdzv/+VnJZrmQ
6i6gqZ6fHz/RPeEWdoMU+OojoiQHpjyVsLv8Vj4pilzVKdqofTQ6tyMv6i37C7SJ
6OqdaNUCVlM4iFCjm8fg/L+LXIIhmjhdmXtaPDgYwwwcpK2n5IcItp526+6Bu2Wt
VhTIRf5zG/qTj/r3P+jrApgbtDpaJST/hrRaqCYiOxkJU2krrrBy9ttq9h4lSiiZ
6nL+CD9YfkV6cDH7BWlz
=So9v
-----END PGP PUBLIC KEY BLOCK-----
EOF
echo "foo" | gpg --encrypt -a --recipient [email protected]
2 changes: 1 addition & 1 deletion .github/workflows/gameci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
permissions:
checks: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: anatawa12/sh-actions/resolve-vpm-packages@master
Expand Down
21 changes: 21 additions & 0 deletions Assets/_ModularAvatar/EditModeTests/AvatarObjectReferenceTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using modular_avatar_tests;
using nadena.dev.modular_avatar.core;
using NUnit.Framework;

public class AvatarObjectReferenceTest : TestBase
{
[Test]
public void whenFakeArmaturePresent_bindsToRealArmature()
{
var root = CreateRoot("root");
var fake_armature = CreateChild(root, "Armature");
var real_armature = CreateChild(root, "Armature");

var hips = CreateChild(real_armature, "Hips");

var reference = new AvatarObjectReference();
reference.referencePath = "Armature";

Assert.AreEqual(real_armature, reference.Get(root.transform));
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using nadena.dev.modular_avatar.core.editor;
using NUnit.Framework;
using VRC.SDK3.Avatars.Components;

namespace modular_avatar_tests
{
public class ExpressionMenuFixupTests : TestBase
{
[Test]
public void testExpMenuFixup()
{
var avatar = CreatePrefab("ExpressionsMenuFixupTestAvatar.prefab");
AvatarProcessor.ProcessAvatar(avatar);

var descriptor = avatar.GetComponent<VRCAvatarDescriptor>();
var expMenu = descriptor.expressionsMenu;

Assert.AreEqual(3, expMenu.controls.Count);

Assert.AreEqual("testparam", expMenu.controls[0].parameter.name);
Assert.AreEqual(256, expMenu.controls[0].icon.height);
Assert.AreEqual(192, expMenu.controls[0].icon.width);

Assert.AreEqual("", expMenu.controls[1].parameter.name);
Assert.AreEqual(192, expMenu.controls[1].icon.height);
Assert.AreEqual(256, expMenu.controls[1].icon.width);

Assert.AreEqual("testparam", expMenu.controls[2].subParameters[0].name);
Assert.AreEqual("", expMenu.controls[2].subParameters[1].name);

foreach (var label in expMenu.controls[2].labels)
{
Assert.LessOrEqual(label.icon.width, 256);
Assert.LessOrEqual(label.icon.height, 256);
}
}
}
}
Loading

0 comments on commit b55fa35

Please sign in to comment.