refactor: Update material default value and remove console logs for cleaner output
This commit is contained in:
parent
0ba771907a
commit
c0e0bcb69d
|
@ -245,7 +245,7 @@ function processLoadedModel(
|
|||
actionUuid: THREE.MathUtils.generateUUID(),
|
||||
actionName: `Action ${index + 1}`,
|
||||
actionType: 'default',
|
||||
material: 'inherit',
|
||||
material: 'Default material',
|
||||
delay: 0,
|
||||
spawnInterval: 5,
|
||||
spawnCount: 1,
|
||||
|
|
|
@ -7,12 +7,12 @@ import { useArmBotStore } from '../../../../../store/simulation/useArmBotStore';
|
|||
function RoboticArmInstance({ armBot }: any) {
|
||||
const { isPlaying } = usePlayButtonStore();
|
||||
const [currentPhase, setCurrentPhase] = useState<(string)>("init");
|
||||
console.log('currentPhase: ', currentPhase);
|
||||
// console.log('currentPhase: ', currentPhase);
|
||||
const { armBots, addArmBot, addCurrentAction } = useArmBotStore();
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
console.log('isPlaying: ', isPlaying);
|
||||
// console.log('isPlaying: ', isPlaying);
|
||||
if (isPlaying) {
|
||||
//Moving armBot from initial point to rest position.
|
||||
|
||||
|
|
|
@ -9,12 +9,9 @@ function RoboticArmInstances() {
|
|||
return (
|
||||
<>
|
||||
{
|
||||
armBots?.map((robot: any) => (
|
||||
|
||||
<RoboticArmInstance armdetals={robot} />
|
||||
)
|
||||
)
|
||||
|
||||
armBots?.map((robot) => (
|
||||
<RoboticArmInstance key={robot.modelUuid} armdetals={robot} />
|
||||
))
|
||||
}
|
||||
|
||||
</>
|
||||
|
|
|
@ -86,7 +86,7 @@ function RoboticArm() {
|
|||
|
||||
|
||||
useEffect(() => {
|
||||
console.log('armBots: ', armBots);
|
||||
// console.log('armBots: ', armBots);
|
||||
}, [armBots]);
|
||||
|
||||
return (
|
||||
|
|
|
@ -23,7 +23,7 @@ function Simulation() {
|
|||
}, [events])
|
||||
|
||||
useEffect(() => {
|
||||
console.log('products: ', products);
|
||||
// console.log('products: ', products);
|
||||
}, [products])
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue