mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 08:50:51 +01:00
Wired fix
This commit is contained in:
parent
bdc912720c
commit
5cf49daaf8
@ -81,19 +81,6 @@ export const WiredBaseView: FC<PropsWithChildren<WiredBaseViewProps>> = props =>
|
|||||||
return [];
|
return [];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return () =>
|
|
||||||
{
|
|
||||||
setNeedsSave(false);
|
|
||||||
setIntParams([]);
|
|
||||||
setStringParam(null);
|
|
||||||
setFurniIds(prevValue =>
|
|
||||||
{
|
|
||||||
if(prevValue && prevValue.length) WiredSelectionVisualizer.clearSelectionShaderFromFurni(prevValue);
|
|
||||||
|
|
||||||
return [];
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}, [ trigger, hasSpecialInput, requiresFurni, setIntParams, setStringParam, setFurniIds ]);
|
}, [ trigger, hasSpecialInput, requiresFurni, setIntParams, setStringParam, setFurniIds ]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -118,8 +118,13 @@ const useWiredState = () =>
|
|||||||
{
|
{
|
||||||
setIntParams([]);
|
setIntParams([]);
|
||||||
setStringParam('');
|
setStringParam('');
|
||||||
setFurniIds([]);
|
|
||||||
setActionDelay(0);
|
setActionDelay(0);
|
||||||
|
setFurniIds(prevValue =>
|
||||||
|
{
|
||||||
|
if(prevValue && prevValue.length) WiredSelectionVisualizer.clearSelectionShaderFromFurni(prevValue);
|
||||||
|
|
||||||
|
return [];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}, [ trigger ]);
|
}, [ trigger ]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user