@volter/editor-blender 0.1.61 → 0.1.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -341,13 +341,18 @@ export async function openModelDocumentBlend(
341
341
  publish();
342
342
  await started;
343
343
  if (boundModel !== binding) return false;
344
- // AND SHOW WHAT IT OPENED. `start` binds the document and loads the file; it
345
- // does not present, because presenting is what a MUTATION does
346
- // (`session.py::dispatch`). So until this line a freshly opened Model
347
- // document displayed nothing until an execute happened to run — I1 measured
348
- // it, and "open a model, see the model" is the document's own request rather
349
- // than a side effect to hope for.
350
- await session.present();
344
+ // bind_document presents the opened file before start resolves. Do not
345
+ // immediately evaluate/export it again: on Stoneguard that redundant RPC
346
+ // took 13.8 seconds after the resumable startup had already finished.
347
+ // A reopened pane has a NEW view, though, and an absent file presents
348
+ // nothing at start. Compare the view's actual holding with the runtime's
349
+ // revision so both cases still request the frame they need.
350
+ const shown = (await runtimeView()).snapshot();
351
+ if (boundModel !== binding) return false;
352
+ const latest = session.presented;
353
+ if (!shown || !latest || shown.session !== latest.session || shown.revision !== latest.revision) {
354
+ await session.present();
355
+ }
351
356
  return boundModel === binding;
352
357
  }
353
358
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@volter/editor-blender",
3
3
  "author": "Volter AI, Inc.",
4
4
  "license": "AGPL-3.0-only AND GPL-3.0-or-later",
5
- "version": "0.1.61",
5
+ "version": "0.1.63",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -70,14 +70,14 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@modelcontextprotocol/sdk": "1.30.0",
73
- "@volter/blender-engine": "0.1.59",
74
- "@volter/editor-threejs": "0.5.121",
73
+ "@volter/blender-engine": "0.1.61",
74
+ "@volter/editor-threejs": "0.5.123",
75
75
  "zod": "^4.3.6"
76
76
  },
77
77
  "peerDependencies": {
78
- "@volter/editor-live": "0.5.121",
79
- "@volter/editor-project": "0.5.121",
80
- "@volter/editor-sdk": "0.5.121",
78
+ "@volter/editor-live": "0.5.123",
79
+ "@volter/editor-project": "0.5.123",
80
+ "@volter/editor-sdk": "0.5.123",
81
81
  "react": "^19.0.0",
82
82
  "react-dom": "^19.0.0",
83
83
  "three": "^0.180.0",