@volter/editor-blender 0.1.68 → 0.1.70
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.
|
@@ -376,6 +376,7 @@ function BlenderViewportArea({
|
|
|
376
376
|
const build = useCallback(
|
|
377
377
|
() => ({
|
|
378
378
|
root: view.root,
|
|
379
|
+
prepareDraw: (camera: THREE.Camera) => view.prepareDraw(camera),
|
|
379
380
|
// What the view draws changes with each frame and the work after it,
|
|
380
381
|
// and with the skin's poses when the Timeline scrubs.
|
|
381
382
|
onChange(listener: () => void) {
|
|
@@ -731,6 +731,7 @@ interface RuntimeView {
|
|
|
731
731
|
stageFrame(part: { session: string; revision: number; abort?: boolean; mesh?: string; image?: string; piece?: unknown }): void;
|
|
732
732
|
applyFrame(frame: unknown): unknown;
|
|
733
733
|
snapshot(): ReturnType<BlenderRuntimeView['snapshot']>;
|
|
734
|
+
drawStatistics(): ReturnType<BlenderRuntimeView['drawStatistics']>;
|
|
734
735
|
/** Own a detached revision for render lighting, never the interactive view. */
|
|
735
736
|
captureSnapshot(): ReturnType<BlenderRuntimeView['captureSnapshot']>;
|
|
736
737
|
/** Keep the description of the frame just applied, and the two poses of every
|
|
@@ -1156,6 +1157,7 @@ export async function handleBlenderCommand(cmd: {
|
|
|
1156
1157
|
data: {
|
|
1157
1158
|
started: runtime?.project != null,
|
|
1158
1159
|
document: host.documents.context(presentationDocumentId()) !== undefined,
|
|
1160
|
+
instancing: runtime?.project != null ? (await runtimeView()).drawStatistics() : null,
|
|
1159
1161
|
lastOutput: runtime?.lastOutput ?? [],
|
|
1160
1162
|
},
|
|
1161
1163
|
};
|
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.
|
|
5
|
+
"version": "0.1.70",
|
|
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.
|
|
74
|
-
"@volter/editor-threejs": "0.5.
|
|
73
|
+
"@volter/blender-engine": "0.1.68",
|
|
74
|
+
"@volter/editor-threejs": "0.5.130",
|
|
75
75
|
"zod": "^4.3.6"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@volter/editor-live": "0.5.
|
|
79
|
-
"@volter/editor-project": "0.5.
|
|
80
|
-
"@volter/editor-sdk": "0.5.
|
|
78
|
+
"@volter/editor-live": "0.5.130",
|
|
79
|
+
"@volter/editor-project": "0.5.130",
|
|
80
|
+
"@volter/editor-sdk": "0.5.130",
|
|
81
81
|
"react": "^19.0.0",
|
|
82
82
|
"react-dom": "^19.0.0",
|
|
83
83
|
"three": "^0.180.0",
|