Improve MineGeo exploration and mapping features
This commit is contained in:
@@ -30,6 +30,7 @@ const dataset = check(
|
||||
if (
|
||||
dataset.source !== "plugin" ||
|
||||
dataset.revision_id ||
|
||||
dataset.parent_dataset_id ||
|
||||
!["draft", "rejected"].includes(dataset.state)
|
||||
)
|
||||
throw new Error(
|
||||
@@ -52,6 +53,14 @@ const input = check(
|
||||
.single(),
|
||||
);
|
||||
if (!input.validated) throw new Error("The export must be validated first.");
|
||||
if (
|
||||
(input.manifest.availableViewpoints ?? input.manifest.viewpoints).some(
|
||||
(p) => p.assetRoot,
|
||||
)
|
||||
)
|
||||
throw new Error(
|
||||
"Repair mixed-media drafts by uploading a new capture; accepted contribution files cannot be overwritten.",
|
||||
);
|
||||
const asset = input.manifest.assets.find((a) => a.path === "terrain.json.gz");
|
||||
if (!asset) throw new Error("Missing original terrain export");
|
||||
const raw = check(
|
||||
|
||||
Reference in New Issue
Block a user