feat(web): Outliner rows draw the desktop library and override markers
- Engine rows carry libraryIcon mirroring ui::icon_from_library (DIRECT, INDIRECT, PACKAGE, PACKAGE_INDIRECT, BROKEN, OVERRIDE, OVERRIDE_NONEDITABLE, ASSET), limited to the element types desktop draws markers for (TSE_ID_BASE rows in Unused Data carry no ID pointer). - The protocol decodes libraryIcon and maps empty markers to null; rows render the badge after the name with an accessible label. - New headed case [outliner-linked-icons-web]; full headed suite 46/46, validator PASS. 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; collectionId?: string | null; objectType?: number | null; mode?: string | null; fakeUser?: boolean | null; users?: number | null; realUsers?: number | null; fakeUserEditable?: boolean | null; asset?: boolean | null; assetSupported?: boolean | null; linked?: boolean | null; libraryOverride?: boolean | null; colorTag?: number | 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; objectType?: number | null; mode?: string | null; fakeUser?: boolean | null; users?: number | null; realUsers?: number | null; fakeUserEditable?: boolean | null; asset?: boolean | null; assetSupported?: boolean | null; linked?: boolean | null; libraryOverride?: boolean | null; libraryIcon?: string | null; colorTag?: number | null }
|
||||
export interface NativeOutlinerRemapID { id: string; name: string; idType: number; library: string; editable: boolean }
|
||||
export interface NativeOutlinerTypeAvailability { mesh: boolean; armature: boolean; light: boolean; camera: boolean; greasePencil: boolean; others: 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; showMeshes: boolean; showArmatures: boolean; showEmpties: boolean; showLights: boolean; showCameras: boolean; showGreasePencil: boolean; showOthers: boolean; systemOverrides: boolean; showModeColumn: boolean; scrollToActive: boolean; typeAvailability?: NativeOutlinerTypeAvailability }
|
||||
@@ -804,6 +804,9 @@ export function parseEditorWorkflow(value: unknown): EditorWorkflowIR {
|
||||
throw new EditorWorkflowValidationError('EDITOR_LAYOUT_INVALID', 'Invalid native Outliner library state');
|
||||
}
|
||||
}
|
||||
if (row.libraryIcon != null && (typeof row.libraryIcon !== 'string' || row.libraryIcon.length > 32)) {
|
||||
throw new EditorWorkflowValidationError('EDITOR_LAYOUT_INVALID', 'Invalid native Outliner library icon');
|
||||
}
|
||||
for (const key of ['users', 'realUsers'] as const) {
|
||||
const value = row[key];
|
||||
if (value != null && (!Number.isSafeInteger(value) || Number(value) < 0 || Number(value) > 0x7fffffff)) {
|
||||
@@ -825,7 +828,8 @@ export function parseEditorWorkflow(value: unknown): EditorWorkflowIR {
|
||||
asset: row.asset == null ? null : row.asset as boolean,
|
||||
assetSupported: row.assetSupported == null ? null : row.assetSupported as boolean,
|
||||
linked: row.linked == null ? null : row.linked as boolean,
|
||||
libraryOverride: row.libraryOverride == null ? null : row.libraryOverride as boolean };
|
||||
libraryOverride: row.libraryOverride == null ? null : row.libraryOverride as boolean,
|
||||
libraryIcon: row.libraryIcon == null ? null : text(row.libraryIcon, 'outliner.row.libraryIcon', 32) };
|
||||
});
|
||||
let remapIds: NativeOutlinerRemapID[] | undefined;
|
||||
if (tree.remapIds !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user