Skip to content

Commit f77e5e6

Browse files
committed
Lygia version break (#1121)
1 parent 11b8584 commit f77e5e6

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/workflows/FissionUnitTest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Cache downloaded assets
2323
id: cache-assets
24-
uses: actions/cache@v2
24+
uses: actions/cache@v3
2525
with:
2626
path: fission/public/
2727
key: ${{ runner.os }}-assets-v1
@@ -32,15 +32,15 @@ jobs:
3232
if: steps.cache-assets.outputs.cache-hit != 'true'
3333
run: |
3434
cd fission
35-
curl -o public/assetpack.zip https://synthesis.autodesk.com/Downloadables/assetpack.zip && unzip -o public/assetpack.zip -d public/
35+
curl -o public/assetpack.zip https://synthesis.autodesk.com/downloadables/assetpack.zip && unzip -o public/assetpack.zip -d public/
3636
3737
- name: Get installed Playwright version
3838
id: playwright-version
3939
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
4040

4141
- name: Cache downloaded browsers
4242
id: cache-browsers
43-
uses: actions/cache@v2
43+
uses: actions/cache@v3
4444
with:
4545
path: |
4646
~/.cache/ms-playwright/

fission/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"prettier": "bun x prettier src --check || npx prettier src --check",
1818
"prettier:fix": "bun x prettier src --write || npx prettier src --write",
1919
"format": "bun run prettier:fix && bun run lint:fix || npm run prettier:fix && npm run lint:fix",
20-
"assetpack": "curl -o public/assetpack.zip https://synthesis.autodesk.com/Downloadables/assetpack.zip && tar -xf public/assetpack.zip -C public/",
20+
"assetpack": "curl -o public/assetpack.zip https://synthesis.autodesk.com/downloadables/assetpack.zip && tar -xf public/assetpack.zip -C public/",
2121
"playwright:install": "bun x playwright install || npx playwright install"
2222
},
2323
"dependencies": {
@@ -34,7 +34,7 @@
3434
"async-mutex": "^0.5.0",
3535
"colord": "^2.9.3",
3636
"framer-motion": "^10.13.1",
37-
"lygia": "^1.1.3",
37+
"lygia": "1.1.3",
3838
"playwright": "^1.46.0",
3939
"postprocessing": "^6.35.6",
4040
"react": "^18.2.0",

fission/src/test/MirabufParser.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import MirabufCachingService, { MiraType } from "../mirabuf/MirabufLoader"
66
describe("Mirabuf Parser Tests", () => {
77
test("Generate Rigid Nodes (Dozer_v9.mira)", async () => {
88
const spikeMira = await MirabufCachingService.CacheRemote(
9-
"/api/mira/Robots/Dozer_v9.mira",
9+
"/api/mira/robots/Dozer_v9.mira",
1010
MiraType.ROBOT
1111
).then(x => MirabufCachingService.Get(x!.id, MiraType.ROBOT))
1212

@@ -28,7 +28,7 @@ describe("Mirabuf Parser Tests", () => {
2828

2929
test("Generate Rigid Nodes (Team 2471 (2018)_v7.mira)", async () => {
3030
const mm = await MirabufCachingService.CacheRemote(
31-
"/api/mira/Robots/Team 2471 (2018)_v7.mira",
31+
"/api/mira/robots/Team 2471 (2018)_v7.mira",
3232
MiraType.ROBOT
3333
).then(x => MirabufCachingService.Get(x!.id, MiraType.ROBOT))
3434
const t = new MirabufParser(mm!)

fission/src/test/PhysicsSystem.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe("GodMode", () => {
8080

8181
describe("Mirabuf Physics Loading", () => {
8282
test("Body Loading (Dozer)", async () => {
83-
const assembly = await MirabufCachingService.CacheRemote("/api/mira/Robots/Dozer_v9.mira", MiraType.ROBOT).then(
83+
const assembly = await MirabufCachingService.CacheRemote("/api/mira/robots/Dozer_v9.mira", MiraType.ROBOT).then(
8484
x => MirabufCachingService.Get(x!.id, MiraType.ROBOT)
8585
)
8686
const parser = new MirabufParser(assembly!)
@@ -92,7 +92,7 @@ describe("Mirabuf Physics Loading", () => {
9292

9393
test("Body Loading (Team_2471_(2018)_v7.mira)", async () => {
9494
const assembly = await MirabufCachingService.CacheRemote(
95-
"/api/mira/Robots/Team 2471 (2018)_v7.mira",
95+
"/api/mira/robots/Team 2471 (2018)_v7.mira",
9696
MiraType.ROBOT
9797
).then(x => {
9898
return MirabufCachingService.Get(x!.id, MiraType.ROBOT)

fission/src/ui/panels/mirabuf/ImportMirabufPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const ImportMirabufPanel: React.FC<PanelPropsImpl> = ({ panelId }) => {
172172
const robots: MirabufRemoteInfo[] = []
173173
for (const src of x["robots"]) {
174174
if (typeof src == "string") {
175-
const str = `/api/mira/Robots/${src}`
175+
const str = `/api/mira/robots/${src}`
176176
if (!map[str]) robots.push({ displayName: src, src: str })
177177
} else {
178178
if (!map[src["src"]]) robots.push({ displayName: src["displayName"], src: src["src"] })
@@ -181,7 +181,7 @@ const ImportMirabufPanel: React.FC<PanelPropsImpl> = ({ panelId }) => {
181181
const fields: MirabufRemoteInfo[] = []
182182
for (const src of x["fields"]) {
183183
if (typeof src == "string") {
184-
const str = `/api/mira/Fields/${src}`
184+
const str = `/api/mira/fields/${src}`
185185
if (!map[str]) fields.push({ displayName: src, src: str })
186186
} else {
187187
if (!map[src["src"]]) fields.push({ displayName: src["displayName"], src: src["src"] })

0 commit comments

Comments
 (0)