fix clear start
This commit is contained in:
@@ -2,14 +2,17 @@ import { useScene } from "@pascal-app/core";
|
|||||||
import { useViewer } from "@pascal-app/viewer";
|
import { useViewer } from "@pascal-app/viewer";
|
||||||
import { Trash2 } from "lucide-react";
|
import { Trash2 } from "lucide-react";
|
||||||
import { Button } from "@/components/ui/primitives/button";
|
import { Button } from "@/components/ui/primitives/button";
|
||||||
|
import useEditor from "@/store/use-editor";
|
||||||
|
|
||||||
export function SettingsPanel() {
|
export function SettingsPanel() {
|
||||||
const clearScene = useScene((state) => state.clearScene);
|
const clearScene = useScene((state) => state.clearScene);
|
||||||
const resetSelection = useViewer((state) => state.resetSelection);
|
const resetSelection = useViewer((state) => state.resetSelection);
|
||||||
|
const setPhase = useEditor((state) => state.setPhase);
|
||||||
|
|
||||||
const handleResetToDefault = () => {
|
const handleResetToDefault = () => {
|
||||||
clearScene();
|
clearScene();
|
||||||
resetSelection();
|
resetSelection();
|
||||||
|
setPhase("site");
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user