feat(web): Outliner Data menu deletes collections and hierarchies
Outliner rows now carry the native collection identity (collectionId), so the Data menu can resolve a collection row the same way rename does. The menu gains 删除集合 / 删除层级, dispatching the existing deleteCollection edits with hierarchy false/true, matching the desktop collection context menu. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -355,7 +355,7 @@ export interface NativeAreaLayout {
|
||||
headerMenusVisible?: boolean;
|
||||
}
|
||||
export interface NativeOutlinerRestrict { enable?: boolean; select?: boolean; hide?: boolean; viewport?: boolean; render?: boolean; holdout?: boolean; indirectOnly?: boolean }
|
||||
export interface NativeOutlinerRow { id: string; label: string; depth: number; selected: boolean; active: boolean; expanded: boolean; hasChildren: boolean; objectId: string | null; kind?: string; restrict?: NativeOutlinerRestrict; restrictionEditable?: boolean; remapId?: string | null }
|
||||
export interface NativeOutlinerRow { id: string; label: string; depth: number; selected: boolean; active: boolean; expanded: boolean; hasChildren: boolean; objectId: string | null; kind?: string; restrict?: NativeOutlinerRestrict; restrictionEditable?: boolean; remapId?: string | null; collectionId?: string | null }
|
||||
export interface NativeOutlinerRemapID { id: string; name: string; idType: number; library: string; editable: boolean }
|
||||
export interface NativeOutlinerFilter { searchString: string; caseSensitive: boolean; complete: boolean; sortAlpha: boolean; invert: boolean; state: 'ALL' | 'VISIBLE' | 'SELECTED' | 'ACTIVE' | 'SELECTABLE'; showObjects: boolean; showObjectContents: boolean; showChildren: boolean; showCollections: boolean; showViewLayers: boolean }
|
||||
export interface NativeOutlinerTree { rows: NativeOutlinerRow[]; truncated: boolean; syncSelection: boolean; displayMode?: string; displayModes?: Array<{ id: string; label: string }>; filter?: NativeOutlinerFilter; restrictColumns?: NativeOutlinerRestrict; remapIds?: NativeOutlinerRemapID[] }
|
||||
@@ -779,7 +779,8 @@ export function parseEditorWorkflow(value: unknown): EditorWorkflowIR {
|
||||
active: row.active as boolean, expanded: row.expanded as boolean, hasChildren: row.hasChildren as boolean,
|
||||
objectId: row.objectId === null ? null : text(row.objectId, 'outliner.row.objectId'),
|
||||
kind, restrict, restrictionEditable: row.restrictionEditable as boolean | undefined,
|
||||
remapId: row.remapId == null ? null : text(row.remapId, 'outliner.row.remapId', 65536) };
|
||||
remapId: row.remapId == null ? null : text(row.remapId, 'outliner.row.remapId', 65536),
|
||||
collectionId: row.collectionId == null ? null : text(row.collectionId, 'outliner.row.collectionId', 65536) };
|
||||
});
|
||||
let remapIds: NativeOutlinerRemapID[] | undefined;
|
||||
if (tree.remapIds !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user