-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into 000/plugin
- Loading branch information
Showing
82 changed files
with
1,473 additions
and
1,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/t6XP35n4PCD/phOxa5E96hrGQqlIrnL | ||
vdYWVlZL/Wv+v7v/9taXcQUrqeKudFar2xFkH+LmBs6NRJUf84zRWpJhOTYS7Owo | ||
JqJX1GSeZjDbUc/pDX6RIz6iG/cjcCbooLwCtu/oCGJtznVD/bBxnmdmP20UK4Zd | ||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m9fw6bTBjTjh | ||
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Assets/_ModularAvatar/EditModeTests/AvatarObjectReferenceTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Assets/_ModularAvatar/EditModeTests/AvatarObjectReferenceTest.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.../com.vrchat.core.vpm-resolver/Editor.meta → ...itModeTests/ExpressionMenuFixupTests.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+6.55 KB
Assets/_ModularAvatar/EditModeTests/ExpressionMenuFixupTests/384x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 116 additions & 0 deletions
116
Assets/_ModularAvatar/EditModeTests/ExpressionMenuFixupTests/384x512.png.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+6.08 KB
Assets/_ModularAvatar/EditModeTests/ExpressionMenuFixupTests/512x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 116 additions & 0 deletions
116
Assets/_ModularAvatar/EditModeTests/ExpressionMenuFixupTests/512x384.png.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
Assets/_ModularAvatar/EditModeTests/ExpressionMenuFixupTests/ExpressionMenuFixupTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.