commit
This commit is contained in:
@@ -2,7 +2,7 @@ import * as THREE from 'three';
|
||||
import { SkeletonUtils } from 'three-stdlib';
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { retrieveGLTF, storeGLTF } from '../../../../../utils/indexDB/idbUtils';
|
||||
import { RapierRigidBody, RigidBody } from '@react-three/rapier';
|
||||
import { RapierRigidBody } from '@react-three/rapier';
|
||||
import { GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
|
||||
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
|
||||
import { ThreeEvent, useThree } from '@react-three/fiber';
|
||||
@@ -27,7 +27,7 @@ import RibbonCollider from './ribbonCollider';
|
||||
|
||||
function Model({ asset, isRendered }: { readonly asset: Asset, isRendered: boolean }) {
|
||||
const url_Backend_dwinzo = `http://${process.env.REACT_APP_SERVER_MARKETPLACE_URL}`;
|
||||
const { controls, gl, scene } = useThree();
|
||||
const { controls, gl } = useThree();
|
||||
const savedTheme: string = localStorage.getItem("theme") || "light";
|
||||
const { activeTool } = useActiveTool();
|
||||
const { toolMode } = useToolMode();
|
||||
@@ -461,13 +461,7 @@ function Model({ asset, isRendered }: { readonly asset: Asset, isRendered: boole
|
||||
{isRendered ? (
|
||||
<>
|
||||
|
||||
{/* <RigidBody
|
||||
type="fixed"
|
||||
colliders='hull'
|
||||
ref={rigidBodyRef}
|
||||
> */}
|
||||
<primitive object={gltfScene} />
|
||||
{/* </ RigidBody> */}
|
||||
|
||||
<ModelAnimator asset={asset} gltfScene={gltfScene} />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user