mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
Fix missing merge function after update
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import {Buffer, Document, Scene, type Transform, WebIO} from "@gltf-transform/core";
|
import {Buffer, Document, Scene, type Transform, WebIO} from "@gltf-transform/core";
|
||||||
import {unpartition} from "@gltf-transform/functions";
|
import {unpartition, mergeDocuments} from "@gltf-transform/functions";
|
||||||
|
|
||||||
let io = new WebIO();
|
let io = new WebIO();
|
||||||
export let extrasNameKey = "__yacv_name";
|
export let extrasNameKey = "__yacv_name";
|
||||||
@@ -56,7 +56,7 @@ export async function mergePartial(url: string, name: string, document: Document
|
|||||||
await newDoc.transform(setNames(name));
|
await newDoc.transform(setNames(name));
|
||||||
|
|
||||||
// Merge the new document into the current one
|
// Merge the new document into the current one
|
||||||
return document.merge(newDoc);
|
return mergeDocuments(document, newDoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function mergeFinalize(document: Document): Promise<Document> {
|
export async function mergeFinalize(document: Document): Promise<Document> {
|
||||||
|
|||||||
Reference in New Issue
Block a user