@volter/editor-blender 0.1.27 → 0.1.29
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.
|
@@ -73,6 +73,10 @@ import {
|
|
|
73
73
|
subscribeObject3DDocumentSessions,
|
|
74
74
|
} from '@volter/editor-threejs/kit/authoring/object3d-document-session-registry';
|
|
75
75
|
import type { ToolObject3DAuthoringProps } from '@volter/editor-threejs/object3d-contributions';
|
|
76
|
+
import { stageStore, subscribeStageStores } from '@volter/editor-sdk/kit/stage-store-registry';
|
|
77
|
+
|
|
78
|
+
/** The second areas' stage stores whose overlays have been opened off (`BlenderViewportArea`). */
|
|
79
|
+
const overlaysOpened = new WeakSet<object>();
|
|
76
80
|
|
|
77
81
|
export const point = 'workspace.document';
|
|
78
82
|
export const title = 'Blender Model';
|
|
@@ -427,6 +431,24 @@ function BlenderViewportArea({
|
|
|
427
431
|
stopFrames();
|
|
428
432
|
};
|
|
429
433
|
}, [main, documentId, view]);
|
|
434
|
+
/**
|
|
435
|
+
* AND WITH THE AREA'S SHOW OVERLAYS OFF, the switch that makes a camera view read as the render
|
|
436
|
+
* does: no grid, no camera or light wires, no selection marks, no view text — and still the
|
|
437
|
+
* camera's outline and passepartout (`drawviewborder`: "When overlays are disabled, only show
|
|
438
|
+
* camera outline & passepartout"). Set once per stage store, which outlives the area's remounts,
|
|
439
|
+
* so turning them back on is the person's and stays.
|
|
440
|
+
*/
|
|
441
|
+
useEffect(() => {
|
|
442
|
+
if (main || !documentId) return;
|
|
443
|
+
const opened = (): void => {
|
|
444
|
+
const store = stageStore(documentId);
|
|
445
|
+
if (store === null || overlaysOpened.has(store)) return;
|
|
446
|
+
overlaysOpened.add(store);
|
|
447
|
+
if (store.showHelpers) store.toggleHelpers();
|
|
448
|
+
};
|
|
449
|
+
opened();
|
|
450
|
+
return subscribeStageStores(opened);
|
|
451
|
+
}, [main, documentId]);
|
|
430
452
|
/**
|
|
431
453
|
* THE INSPECTION OVERLAYS ARE HELPERS, and the Helpers menu owns them
|
|
432
454
|
* (WORK.md §Blender in the tab is Blender, "Inspection parity", I4).
|
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.29",
|
|
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.27",
|
|
74
|
+
"@volter/editor-threejs": "0.5.89",
|
|
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.89",
|
|
79
|
+
"@volter/editor-project": "0.5.89",
|
|
80
|
+
"@volter/editor-sdk": "0.5.89",
|
|
81
81
|
"react": "^19.0.0",
|
|
82
82
|
"react-dom": "^19.0.0",
|
|
83
83
|
"three": "^0.180.0",
|