babylon.js update to 8.33.4
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user