updated dropped3dWidgets
This commit is contained in:
parent
1e22d82bff
commit
304b62466a
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue