v2-ui #84
|
@ -31,7 +31,15 @@ const FloorPlanGroup = ({ floorPlanGroup, floorPlanGroupLine, floorPlanGroupPoin
|
||||||
const { socket } = useSocketStore();
|
const { socket } = useSocketStore();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
addDragControl(dragPointControls, currentLayerPoint, state, floorPlanGroupPoint, floorPlanGroupLine, lines, onlyFloorlines, socket);
|
if (toolMode === 'move') {
|
||||||
|
addDragControl(dragPointControls, currentLayerPoint, state, floorPlanGroupPoint, floorPlanGroupLine, lines, onlyFloorlines, socket);
|
||||||
|
}
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
if (dragPointControls.current) {
|
||||||
|
dragPointControls.current.enabled = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
}, [toolMode, state]);
|
}, [toolMode, state]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue