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(),
actionName: `Action ${index + 1}`,
actionType: 'default',
material: 'inherit',
material: 'Default material',
delay: 0,
spawnInterval: 5,
spawnCount: 1,

View File

@ -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.

View File

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

View File

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

View File

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