fix(web): enable the embedded Python console in web mode
Remove the leftover localOnly gate and run pasted multi-statement blocks via exec. Verified version output and a multi-line cube-add snippet updating Main. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -441,6 +441,17 @@
|
||||
values [0.1,0.2]);Keyframe Editor 将 frame 10 的值改为 0.5;Dope Sheet
|
||||
显示“关键帧 1/10”两个点;证据
|
||||
`tools/web/complete/probe-keyframe-edit.mjs`。
|
||||
- Scripting(2026-11-14):
|
||||
- 缺口:`embeddedPythonRef.run` 仍带 `!localOnly` 守卫,`?ui=web` 的
|
||||
Python Console 直接报 `PYTHON_PROJECT_UNAVAILABLE`。
|
||||
- 缺口:多行粘贴按 `codeop` 的 `single` 编译,两个顶层语句报
|
||||
`SyntaxError: multiple statements`。
|
||||
- 修复:移除 `localOnly` 守卫;console 编译遇 `multiple statements` 时
|
||||
回退 `compile(..., 'exec')`,按脚本执行粘贴块。
|
||||
- 复测:`print(bpy.app.version_string)` → `PROBE_DONE 5.2.0 LTS`;多行
|
||||
`bpy.ops.mesh.primitive_cube_add()` → Objects 7、Active Cube,状态
|
||||
SceneIR r3;WASM `8a874494...`。证据
|
||||
`tools/web/complete/probe-python-console.mjs`。
|
||||
- Sequencer:Properties 的 Sequencer Strip Editing → Add Strip 创建
|
||||
`Web MOVIE`(MOVIE);证据 `tools/web/complete/probe-sequencer.mjs`。
|
||||
- Outliner:右键 `Data` 菜单 → 重命名,`PBR Studio Ground` → `GroundRenamed`,
|
||||
|
||||
Reference in New Issue
Block a user