babylon.quarks-editor 0.24.0 → 0.24.1
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.
- package/CHANGELOG.md +9 -0
- package/dist/core/galleryScene.d.ts +1 -0
- package/dist/core/galleryScene.js +1 -0
- package/dist/core/viewportPicker.d.ts +1 -0
- package/dist/core/viewportPicker.js +1 -0
- package/dist/react/EffectEditorHost.d.ts +1 -0
- package/dist/react/EffectEditorHost.js +5 -0
- package/package.json +1 -1
- package/src/core/galleryScene.ts +1 -0
- package/src/core/viewportPicker.ts +1 -0
- package/src/react/EffectEditorHost.tsx +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ All notable changes to the `babylon.quarks-editor` package are documented here.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
5
5
|
and the project follows the `quarks.core` 0.x version line.
|
|
6
6
|
|
|
7
|
+
## [0.24.1] — 2026-10-20
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- With Babylon 9.31 the viewport lost its ground grid (the whole plane drew in flat grey) and the
|
|
12
|
+
gizmos, viewport selection and drop-to-place stopped responding: 9.31's grid needs `linesOnly`
|
|
13
|
+
for what opacity below 1 used to do, and `scene.pick` now needs `@babylonjs/core/Culling/ray`
|
|
14
|
+
imported for its side effect, which the editor now does.
|
|
15
|
+
|
|
7
16
|
## [0.24.0] — 2026-10-20
|
|
8
17
|
|
|
9
18
|
### Added
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera';
|
|
3
|
+
// scene.pick lives in Ray's side effect (Babylon 9.31 no longer pulls it in); gizmos pick through it.
|
|
4
|
+
import '@babylonjs/core/Culling/ray';
|
|
3
5
|
import { Engine } from '@babylonjs/core/Engines/engine';
|
|
4
6
|
import { PointerEventTypes } from '@babylonjs/core/Events/pointerEvents';
|
|
5
7
|
import { GizmoManager } from '@babylonjs/core/Gizmos/gizmoManager';
|
|
@@ -293,6 +295,9 @@ export function EffectEditorHost(props) {
|
|
|
293
295
|
groundMaterial.mainColor = new Color3(1, 1, 1);
|
|
294
296
|
groundMaterial.lineColor = new Color3(1, 1, 1);
|
|
295
297
|
groundMaterial.opacity = 0.5;
|
|
298
|
+
// Draw only the lines. Babylon < 9.31 did this by itself for opacity < 1; 9.31 needs the flag,
|
|
299
|
+
// or the whole plane is filled with the main color.
|
|
300
|
+
groundMaterial.linesOnly = true;
|
|
296
301
|
const ground = MeshBuilder.CreateGround('ground', { width: 100, height: 100 }, scene);
|
|
297
302
|
ground.material = groundMaterial;
|
|
298
303
|
const gizmoUtilityLayer = new UtilityLayerRenderer(scene);
|
package/package.json
CHANGED
package/src/core/galleryScene.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {ArcRotateCamera} from '@babylonjs/core/Cameras/arcRotateCamera';
|
|
2
|
+
// scene.pick lives in Ray's side effect (Babylon 9.31 no longer pulls it in); gizmos pick through it.
|
|
3
|
+
import '@babylonjs/core/Culling/ray';
|
|
2
4
|
import {Engine} from '@babylonjs/core/Engines/engine';
|
|
3
5
|
import {PointerEventTypes} from '@babylonjs/core/Events/pointerEvents';
|
|
4
6
|
import {GizmoManager} from '@babylonjs/core/Gizmos/gizmoManager';
|
|
@@ -411,6 +413,9 @@ export function EffectEditorHost(props: EffectEditorHostProps) {
|
|
|
411
413
|
groundMaterial.mainColor = new Color3(1, 1, 1);
|
|
412
414
|
groundMaterial.lineColor = new Color3(1, 1, 1);
|
|
413
415
|
groundMaterial.opacity = 0.5;
|
|
416
|
+
// Draw only the lines. Babylon < 9.31 did this by itself for opacity < 1; 9.31 needs the flag,
|
|
417
|
+
// or the whole plane is filled with the main color.
|
|
418
|
+
groundMaterial.linesOnly = true;
|
|
414
419
|
const ground = MeshBuilder.CreateGround('ground', {width: 100, height: 100}, scene);
|
|
415
420
|
ground.material = groundMaterial;
|
|
416
421
|
|