@volter/editor-blender 0.1.137 → 0.1.138
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.
|
@@ -191,6 +191,26 @@ const MAPPING = {
|
|
|
191
191
|
// gizmos carry all three (`gizmo.*`).
|
|
192
192
|
'viewport.selection': rgb('space_view3d.select'),
|
|
193
193
|
'viewport.active': rgb('space_view3d.active'),
|
|
194
|
+
// The box-select rectangle is not themed in Blender at all: `wm_gesture_draw_rect`
|
|
195
|
+
// (`source/blender/windowmanager/intern/wm_gesture.cc`) states its colours as literals, so
|
|
196
|
+
// each is held with that citation. Its dash (8 framebuffer px at `udash_factor` 0.5) is the
|
|
197
|
+
// style's `stage.marqueeDash`.
|
|
198
|
+
'viewport.marqueeLine': held(
|
|
199
|
+
'#666666',
|
|
200
|
+
"`wm_gesture_draw_rect`'s dashed outline, `immUniform4f(\"color\", 0.4f, 0.4f, 0.4f, 1.0f)` " +
|
|
201
|
+
'— the first half of each dash period. A literal in `wm_gesture.cc`, not a theme member.',
|
|
202
|
+
),
|
|
203
|
+
'viewport.marqueeGap': held(
|
|
204
|
+
'#ffffff',
|
|
205
|
+
'the same outline\'s `immUniform4f("color2", 1.0f, 1.0f, 1.0f, 1.0f)` — the second half of ' +
|
|
206
|
+
'each period (`colors_len` 2, so the gap is drawn rather than discarded).',
|
|
207
|
+
),
|
|
208
|
+
'viewport.marqueeFill': held(
|
|
209
|
+
'rgba(255,255,255,0.05)',
|
|
210
|
+
"`wm_gesture_draw_rect`'s fill, `immUniformColor4f(1.0f, 1.0f, 1.0f, 0.05f)` under " +
|
|
211
|
+
'`GPU_BLEND_ALPHA`. Not the accent: `.tui.wcol_regular.inner_sel` is opaque, and as the ' +
|
|
212
|
+
'fill it drew the band as a solid blue square.',
|
|
213
|
+
),
|
|
194
214
|
|
|
195
215
|
// The transform gizmo draws the theme's axis colours as they are
|
|
196
216
|
// (`transform_gizmo_3d.cc`, `gizmo_get_axis_color`), and so does the navigation gizmo, mixed
|
|
@@ -51,7 +51,10 @@
|
|
|
51
51
|
"axisX": "#cb293f",
|
|
52
52
|
"axisY": "#69aa15",
|
|
53
53
|
"selection": "#ed5700",
|
|
54
|
-
"active": "#ffa028"
|
|
54
|
+
"active": "#ffa028",
|
|
55
|
+
"marqueeLine": "#666666",
|
|
56
|
+
"marqueeGap": "#ffffff",
|
|
57
|
+
"marqueeFill": "rgba(255,255,255,0.05)"
|
|
55
58
|
},
|
|
56
59
|
"gizmo": {
|
|
57
60
|
"x": "#ff3352",
|
|
@@ -205,6 +205,13 @@ export const style: StyleContribution = {
|
|
|
205
205
|
gridLineWidth: 1.5,
|
|
206
206
|
gridMajorWidth: 2.25,
|
|
207
207
|
gridMajorContrast: 39 / 21,
|
|
208
|
+
// BLENDER'S BOX-SELECT OUTLINE IS DASHED in two colours, 4 device pixels of each:
|
|
209
|
+
// `wm_gesture_draw_rect` (`wm_gesture.cc`) sets `dash_width` 8 at `udash_factor` 0.5, and
|
|
210
|
+
// the dashed-line shader measures that in framebuffer pixels
|
|
211
|
+
// (`gpu_shader_3D_line_dashed_uniform_color_vert.glsl`), so it does not grow with the UI
|
|
212
|
+
// scale the way the line's width does. Its colours are the palette's
|
|
213
|
+
// `color.viewport.marqueeLine` and `marqueeGap`.
|
|
214
|
+
marqueeDash: 4,
|
|
208
215
|
},
|
|
209
216
|
},
|
|
210
217
|
icons,
|
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.138",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
75
|
-
"@volter/blender-engine": "0.1.
|
|
76
|
-
"@volter/editor-threejs": "0.5.
|
|
75
|
+
"@volter/blender-engine": "0.1.136",
|
|
76
|
+
"@volter/editor-threejs": "0.5.199",
|
|
77
77
|
"zod": "^4.3.6",
|
|
78
78
|
"@fortawesome/free-solid-svg-icons": "^7.2.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@volter/editor-live": "0.5.
|
|
82
|
-
"@volter/editor-project": "0.5.
|
|
83
|
-
"@volter/editor-sdk": "0.5.
|
|
81
|
+
"@volter/editor-live": "0.5.199",
|
|
82
|
+
"@volter/editor-project": "0.5.199",
|
|
83
|
+
"@volter/editor-sdk": "0.5.199",
|
|
84
84
|
"react": "^19.0.0",
|
|
85
85
|
"react-dom": "^19.0.0",
|
|
86
86
|
"three": "^0.180.0",
|