@volter/editor-blender 0.1.128 → 0.1.129
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.
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
type BlenderRuntimeView,
|
|
31
31
|
blenderModelView,
|
|
32
32
|
} from '@volter/blender-engine/browser/three/blender-runtime-view';
|
|
33
|
+
import { ownedSurfaceMaterial } from '@volter/blender-engine/browser/three/blender-physical-material';
|
|
33
34
|
import type { ToolContributionProps, ToolDocumentToolbar } from '@volter/editor-sdk/contributions';
|
|
34
35
|
import { editorHost } from '@volter/editor-sdk/host';
|
|
35
36
|
import {
|
|
@@ -717,6 +718,7 @@ function BlenderViewportArea({
|
|
|
717
718
|
camera: () => stage.rig().drawCamera(),
|
|
718
719
|
editingCamera: () => viewportStages().find(one => one.documentId === modelId)?.rig().drawCamera() ?? stage.rig().drawCamera(),
|
|
719
720
|
onFrame: (fn) => stage.onFrame(fn),
|
|
721
|
+
ownMaterial: (material) => ownedSurfaceMaterial(material as THREE.Material),
|
|
720
722
|
report: (title, detail) => {
|
|
721
723
|
editorHost().console.error(`${title}: ${detail}`, 'blender-play');
|
|
722
724
|
notifyRef.current?.({ tone: 'error', title, detail });
|
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.129",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
73
|
-
"@volter/blender-engine": "0.1.
|
|
74
|
-
"@volter/editor-threejs": "0.5.
|
|
73
|
+
"@volter/blender-engine": "0.1.127",
|
|
74
|
+
"@volter/editor-threejs": "0.5.190",
|
|
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.190",
|
|
79
|
+
"@volter/editor-project": "0.5.190",
|
|
80
|
+
"@volter/editor-sdk": "0.5.190",
|
|
81
81
|
"react": "^19.0.0",
|
|
82
82
|
"react-dom": "^19.0.0",
|
|
83
83
|
"three": "^0.180.0",
|