Reorder imports in gltf-model-import.ts

This commit is contained in:
2026-03-31 17:49:00 +02:00
parent 0b406acd38
commit 3b8539066e

View File

@@ -7,10 +7,10 @@ import {
createProjectAssetStorageKey,
type ModelAssetMetadata,
type ModelAssetRecord,
type ProjectAssetStorage
} from "./project-assets";
import { createOpaqueId } from "../core/ids";
import type { ProjectAssetStorageRecord } from "./project-asset-storage";
import type { ProjectAssetStorage } from "./project-asset-storage";
export interface LoadedModelAsset {
assetId: string;
@@ -250,7 +250,7 @@ function disposeTexture(texture: Texture, seenTextures: Set<Texture>) {
function disposeMaterialResources(material: Material, disposeTextures: boolean, seenTextures: Set<Texture>) {
if (disposeTextures) {
for (const value of Object.values(material as Record<string, unknown>)) {
for (const value of Object.values(material as unknown as Record<string, unknown>)) {
if (value === null || value === undefined) {
continue;
}