Add useEffect to update whitebox snap step draft on editor state changes
This commit is contained in:
@@ -1801,6 +1801,10 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
||||
setSceneNameDraft(editorState.document.name);
|
||||
}, [editorState.document.name]);
|
||||
|
||||
useEffect(() => {
|
||||
setWhiteboxSnapStepDraft(String(editorState.whiteboxSnapStep));
|
||||
}, [editorState.activeSceneId, editorState.whiteboxSnapStep]);
|
||||
|
||||
useEffect(() => {
|
||||
setSceneLoadingHeadlineDraft(
|
||||
activeProjectScene.loadingScreen.headline ?? ""
|
||||
|
||||
Reference in New Issue
Block a user