updated dropped3dWidgets

This commit is contained in:
Gomathi 2025-04-10 18:12:58 +05:30
parent 1e22d82bff
commit 304b62466a
1 changed files with 6 additions and 6 deletions

View File

@ -206,11 +206,11 @@ export default function Dropped3dWidgets() {
[selectedZone.zoneId]: cleanedWidgets,
},
}));
if (!isInside) {
// if (!isInside) {
createdWidgetRef.current = null;
return; // Stop here
}
// createdWidgetRef.current = null;
// return; // Stop here
// }
// ✅ Add widget if inside polygon
addWidget(selectedZone.zoneId, newWidget);
@ -404,9 +404,9 @@ export default function Dropped3dWidgets() {
[newPosition[0], newPosition[2]],
zonePolygonXZ
);
if (isInside) {
// if (isInside) {
updateWidgetPosition(selectedZoneId, rightClickSelected, newPosition);
}
// }
}
if (rightSelect === "Vertical Move") {