chore: checkpoint web Blender migration source, tools and docs
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

Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-10 11:18:01 +08:00
parent 122142c26c
commit f3e21c6b98
6887 changed files with 257154 additions and 12294 deletions

View File

@@ -0,0 +1,36 @@
import pathlib
import sys
import bpy
root = pathlib.Path(__file__).resolve().parents[3]
hierarchy = "--hierarchy" in sys.argv
target = root / "tests/files/web" / (
"object_editor_visibility_scene.blend" if hierarchy else "object_editor_scene.blend")
if target.exists():
raise RuntimeError("Fixture already exists; retain the existing hash-bound input")
bpy.ops.wm.open_mainfile(filepath=str(root / "tests/files/web/basic_scene.blend"))
cube = bpy.data.objects["BasicCube"]
cube.location = (3.0, -2.0, 5.0)
cube.rotation_mode = "XYZ"
cube.rotation_euler = (0.2, 0.4, 0.6)
cube.scale = (1.5, 2.0, 0.5)
if hierarchy:
collection = bpy.data.collections["Collection"]
nested = bpy.data.collections.new("ObjectEditor Nested")
collection.children.link(nested)
camera = bpy.data.objects["BasicCamera"]
collection.objects.unlink(camera)
nested.objects.link(camera)
alternative = bpy.data.collections.new("ObjectEditor Alternative")
bpy.context.scene.collection.children.link(alternative)
alternative.objects.link(bpy.data.objects["BasicArea"])
hidden = bpy.data.objects.new("ObjectEditor Hidden", None)
hidden.hide_viewport = True
alternative.objects.link(hidden)
bpy.context.view_layer.update()
for obj in bpy.context.view_layer.objects:
obj.select_set(obj == cube)
bpy.context.view_layer.objects.active = cube
bpy.ops.wm.save_as_mainfile(filepath=str(target))