updated dropped3dWidgets
This commit is contained in:
parent
1e22d82bff
commit
304b62466a
|
@ -206,11 +206,11 @@ export default function Dropped3dWidgets() {
|
||||||
[selectedZone.zoneId]: cleanedWidgets,
|
[selectedZone.zoneId]: cleanedWidgets,
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
if (!isInside) {
|
// if (!isInside) {
|
||||||
|
|
||||||
createdWidgetRef.current = null;
|
// createdWidgetRef.current = null;
|
||||||
return; // Stop here
|
// return; // Stop here
|
||||||
}
|
// }
|
||||||
// ✅ Add widget if inside polygon
|
// ✅ Add widget if inside polygon
|
||||||
addWidget(selectedZone.zoneId, newWidget);
|
addWidget(selectedZone.zoneId, newWidget);
|
||||||
|
|
||||||
|
@ -404,9 +404,9 @@ export default function Dropped3dWidgets() {
|
||||||
[newPosition[0], newPosition[2]],
|
[newPosition[0], newPosition[2]],
|
||||||
zonePolygonXZ
|
zonePolygonXZ
|
||||||
);
|
);
|
||||||
if (isInside) {
|
// if (isInside) {
|
||||||
updateWidgetPosition(selectedZoneId, rightClickSelected, newPosition);
|
updateWidgetPosition(selectedZoneId, rightClickSelected, newPosition);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rightSelect === "Vertical Move") {
|
if (rightSelect === "Vertical Move") {
|
||||||
|
|
Loading…
Reference in New Issue