refactor: Clean up console log statements and improve component state management in SideBarRight, AssetProperties, WallInstances, WallCreator, and SocketResponses
This commit is contained in:
@@ -41,7 +41,7 @@ function WallInstances() {
|
||||
|
||||
return (
|
||||
<>
|
||||
{!toggleView && walls.length > 1 && (
|
||||
{!toggleView && (
|
||||
<>
|
||||
{walls.map((wall) => (
|
||||
<WallInstance key={wall.wallUuid} wall={wall} />
|
||||
|
||||
@@ -71,7 +71,6 @@ function WallCreator() {
|
||||
|
||||
if (wallIntersect && !pointIntersects) {
|
||||
const wall = getWallByPoints(wallIntersect.object.userData.points);
|
||||
console.log('wall: ', wall);
|
||||
if (wall) {
|
||||
const ThroughPoint = wallIntersect.object.userData.path.getPoints(Constants.lineConfig.lineIntersectionPoints);
|
||||
let intersectionPoint = getClosestIntersection(ThroughPoint, wallIntersect.point);
|
||||
@@ -295,9 +294,7 @@ function WallCreator() {
|
||||
position: [position.x, position.y, position.z],
|
||||
layer: activeLayer
|
||||
};
|
||||
console.log('newPoint: ', newPoint);
|
||||
|
||||
console.log('snappedPoint: ', snappedPoint);
|
||||
if (snappedPosition && snappedPoint) {
|
||||
newPoint.pointUuid = snappedPoint.pointUuid;
|
||||
newPoint.position = snappedPosition;
|
||||
@@ -319,7 +316,6 @@ function WallCreator() {
|
||||
}
|
||||
}
|
||||
|
||||
console.log('tempPoints: ', tempPoints);
|
||||
if (tempPoints.length === 0) {
|
||||
setTempPoints([newPoint]);
|
||||
setIsCreating(true);
|
||||
@@ -334,7 +330,6 @@ function WallCreator() {
|
||||
decals: []
|
||||
};
|
||||
addWall(wall);
|
||||
console.log('wall: ', wall);
|
||||
|
||||
// API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user