babylon.js update to 8.33.4

This commit is contained in:
iv_vuytsik
2025-10-28 17:08:49 +03:00
parent dc798e6272
commit 549a05509b
3 changed files with 21 additions and 32 deletions

View File

@@ -1,6 +1,7 @@
'use client'
import React, { useEffect, useRef, useState } from 'react'
import {
Engine,
Scene,
@@ -11,7 +12,6 @@ import {
Color4,
AbstractMesh,
Nullable,
ImportMeshAsync,
HighlightLayer,
Mesh,
InstancedMesh,
@@ -19,7 +19,8 @@ import {
CubicEase,
EasingFunction,
Matrix,
Viewport
Viewport,
ImportMeshAsync,
} from '@babylonjs/core'
import '@babylonjs/loaders'
@@ -185,7 +186,7 @@ const ModelViewer: React.FC<ModelViewerProps> = ({
setLoadingProgress(100)
console.log('GLTF Model loaded successfully!')
console.log('[ModelViewer] ImportMeshAsync result:', result)
console.log('ImportMeshAsync result:', result)
if (result.meshes.length > 0) {
const boundingBox = result.meshes[0].getHierarchyBoundingVectors()