From 097b17386b549a4b060b0fd98a3bbf3b08c93f64 Mon Sep 17 00:00:00 2001 From: Yeicor <4929005+Yeicor@users.noreply.github.com> Date: Sun, 12 May 2024 13:24:22 +0200 Subject: [PATCH] Fix missing merge function after update --- frontend/misc/gltf.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/misc/gltf.ts b/frontend/misc/gltf.ts index efe40b2..353ceac 100644 --- a/frontend/misc/gltf.ts +++ b/frontend/misc/gltf.ts @@ -1,5 +1,5 @@ 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(); export let extrasNameKey = "__yacv_name"; @@ -56,7 +56,7 @@ export async function mergePartial(url: string, name: string, document: Document await newDoc.transform(setNames(name)); // Merge the new document into the current one - return document.merge(newDoc); + return mergeDocuments(document, newDoc); } export async function mergeFinalize(document: Document): Promise {