Align web editor with Blender 5.2 interface
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
export type WorkspaceId = "Layout" | "Modeling" | "Animation";
|
||||
export const BLENDER_WORKSPACE_IDS = [
|
||||
"Layout",
|
||||
"Modeling",
|
||||
"Sculpting",
|
||||
"UV Editing",
|
||||
"Texture Paint",
|
||||
"Shading",
|
||||
"Animation",
|
||||
"Rendering",
|
||||
"Compositing",
|
||||
"Geometry Nodes",
|
||||
"Scripting",
|
||||
] as const;
|
||||
|
||||
export type WorkspaceId = typeof BLENDER_WORKSPACE_IDS[number];
|
||||
export type EditorType = "3D Viewport" | "Outliner" | "Properties" | "Timeline";
|
||||
export type BlenderMode = "Object" | "Edit" | "Pose";
|
||||
|
||||
@@ -75,11 +89,7 @@ function workspace(id: WorkspaceId): WorkspaceIR {
|
||||
}
|
||||
|
||||
export function createDefaultWebWorkspaceState(): WebWorkspaceState {
|
||||
const workspaces = {
|
||||
Layout: workspace("Layout"),
|
||||
Modeling: workspace("Modeling"),
|
||||
Animation: workspace("Animation"),
|
||||
} satisfies Record<WorkspaceId, WorkspaceIR>;
|
||||
const workspaces = Object.fromEntries(BLENDER_WORKSPACE_IDS.map((id) => [id, workspace(id)])) as Record<WorkspaceId, WorkspaceIR>;
|
||||
return {
|
||||
workspaces,
|
||||
context: {
|
||||
|
||||
Reference in New Issue
Block a user