fix(web): refresh the Outliner after visibility changes
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

The native visibility flag update left the Outliner tree empty and hid the
eye toggle. Refresh the active Outliner after setObjectVisibility.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-14 11:00:02 +08:00
parent cea4491607
commit 22c1ba696a
4 changed files with 103 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"task": "WBV2-P1425-001",
"updatedAt": "2026-11-14T09:58:00+08:00",
"updatedAt": "2026-11-14T10:00:00+08:00",
"status": "in_progress",
"focus": "COMPLETE-TUTORIAL-001 backend export gap (USD/Alembic)",
"breakpoint": "blender-5.2.0/source/blender/web_engine/CMakeLists.txt (USD wiring); WASM 6ee2b261",
@@ -316,5 +316,12 @@
"result": "排除 toggles layer exclude true→false; 隐藏 toggles layer hide_viewport; restored",
"script": "tools/web/complete/probe-layer-settings.mjs",
"acceptance": "NOT_CLAIMED"
},
"objectVisibilityFix": {
"fix": "App.tsx refreshes the active Outliner after a setObjectVisibility command (the native flag change did not rebuild the tree)",
"before": "hiding an object collapsed the whole Outliner until manual refresh; the eye toggle disappeared",
"after": "hide → tree retained, eye 显示 PBR Studio Ground; show → hide_viewport=false, revision r5",
"script": "tools/web/complete/probe-object-visibility.mjs",
"acceptance": "NOT_CLAIMED"
}
}