refactor: Update material default value and remove console logs for cleaner output

This commit is contained in:
Jerald-Golden-B 2025-04-25 11:49:39 +05:30
parent 0ba771907a
commit c0e0bcb69d
5 changed files with 8 additions and 11 deletions

View File

@ -245,7 +245,7 @@ function processLoadedModel(
actionUuid: THREE.MathUtils.generateUUID(), actionUuid: THREE.MathUtils.generateUUID(),
actionName: `Action ${index + 1}`, actionName: `Action ${index + 1}`,
actionType: 'default', actionType: 'default',
material: 'inherit', material: 'Default material',
delay: 0, delay: 0,
spawnInterval: 5, spawnInterval: 5,
spawnCount: 1, spawnCount: 1,

View File

@ -7,12 +7,12 @@ import { useArmBotStore } from '../../../../../store/simulation/useArmBotStore';
function RoboticArmInstance({ armBot }: any) { function RoboticArmInstance({ armBot }: any) {
const { isPlaying } = usePlayButtonStore(); const { isPlaying } = usePlayButtonStore();
const [currentPhase, setCurrentPhase] = useState<(string)>("init"); const [currentPhase, setCurrentPhase] = useState<(string)>("init");
console.log('currentPhase: ', currentPhase); // console.log('currentPhase: ', currentPhase);
const { armBots, addArmBot, addCurrentAction } = useArmBotStore(); const { armBots, addArmBot, addCurrentAction } = useArmBotStore();
useEffect(() => { useEffect(() => {
console.log('isPlaying: ', isPlaying); // console.log('isPlaying: ', isPlaying);
if (isPlaying) { if (isPlaying) {
//Moving armBot from initial point to rest position. //Moving armBot from initial point to rest position.

View File

@ -9,12 +9,9 @@ function RoboticArmInstances() {
return ( return (
<> <>
{ {
armBots?.map((robot: any) => ( armBots?.map((robot) => (
<RoboticArmInstance key={robot.modelUuid} armdetals={robot} />
<RoboticArmInstance armdetals={robot} /> ))
)
)
} }
</> </>

View File

@ -86,7 +86,7 @@ function RoboticArm() {
useEffect(() => { useEffect(() => {
console.log('armBots: ', armBots); // console.log('armBots: ', armBots);
}, [armBots]); }, [armBots]);
return ( return (

View File

@ -23,7 +23,7 @@ function Simulation() {
}, [events]) }, [events])
useEffect(() => { useEffect(() => {
console.log('products: ', products); // console.log('products: ', products);
}, [products]) }, [products])
return ( return (