- {robots.map(mirabufSceneObject => {
- return (
-
- )
- })}
-
- {/* TODO: remove the accept button on this version */}
- >
- ) : (
- <>
-
-
v != null && setViewType(v)}
- sx={{
- alignSelf: "center",
- }}
- >
- SynthesisBrain
- WIPLIBBrain
-
- {viewType === ConfigureRobotBrainTypes.SYNTHESIS ? (
- <>
-
- Behaviors
-
-
- {GetJoints(selectedRobot)}
- >
- ) : (
- <>
-
- Example WIPLIB Brain
-
-
-
-
- Example 2
-
-
-
-
- Example 3
-
-
-
-
- Example 4
-
-
- >
- )}
-
- >
- )}
-
- )
-}
-
-export default ConfigureRobotBrainPanel
diff --git a/fission/src/ui/panels/mirabuf/ImportMirabufPanel.tsx b/fission/src/ui/panels/mirabuf/ImportMirabufPanel.tsx
index 351b5085f..6ef68f4d7 100644
--- a/fission/src/ui/panels/mirabuf/ImportMirabufPanel.tsx
+++ b/fission/src/ui/panels/mirabuf/ImportMirabufPanel.tsx
@@ -8,7 +8,14 @@ import {
MirabufFilesUpdateEvent,
RequestMirabufFiles,
} from "@/aps/APSDataManagement"
-import MirabufCachingService, { MirabufCacheInfo, MirabufRemoteInfo, MiraType } from "@/mirabuf/MirabufLoader"
+import MirabufCachingService, {
+ backUpFields,
+ backUpRobots,
+ canOPFS,
+ MirabufCacheInfo,
+ MirabufRemoteInfo,
+ MiraType,
+} from "@/mirabuf/MirabufLoader"
import World from "@/systems/World"
import { useTooltipControlContext } from "@/ui/TooltipContext"
import { CreateMirabuf } from "@/mirabuf/MirabufSceneObject"
@@ -72,7 +79,9 @@ export type MiraManifest = {
}
function GetCacheInfo(miraType: MiraType): MirabufCacheInfo[] {
- return Object.values(MirabufCachingService.GetCacheMap(miraType))
+ return Object.values(
+ canOPFS ? MirabufCachingService.GetCacheMap(miraType) : miraType == MiraType.ROBOT ? backUpRobots : backUpFields
+ )
}
function SpawnCachedMira(info: MirabufCacheInfo, type: MiraType, progressHandle?: ProgressHandle) {