@babylonjs/node-editor 5.19.0 → 5.20.0
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.
|
@@ -63696,7 +63696,7 @@ class GraphCanvasComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component
|
|
|
63696
63696
|
this.props.stateManager.onRebuildRequiredObservable.notifyObservers(false);
|
|
63697
63697
|
return;
|
|
63698
63698
|
}
|
|
63699
|
-
if (!evt.ctrlKey || this.props.stateManager.lockObject.lock) {
|
|
63699
|
+
if ((!evt.ctrlKey && !evt.metaKey) || this.props.stateManager.lockObject.lock) {
|
|
63700
63700
|
return;
|
|
63701
63701
|
}
|
|
63702
63702
|
if (evt.key === "c" || evt.key === "C") {
|
|
@@ -66979,11 +66979,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66979
66979
|
|
|
66980
66980
|
|
|
66981
66981
|
|
|
66982
|
+
|
|
66982
66983
|
|
|
66983
66984
|
|
|
66984
66985
|
class BlockTools {
|
|
66985
66986
|
static GetBlockFromString(data, scene, nodeMaterial) {
|
|
66986
66987
|
switch (data) {
|
|
66988
|
+
case "HeightToNormalBlock":
|
|
66989
|
+
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.HeightToNormalBlock("HeightToNormal");
|
|
66987
66990
|
case "ElbowBlock":
|
|
66988
66991
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.ElbowBlock("");
|
|
66989
66992
|
case "TwirlBlock":
|
|
@@ -67831,6 +67834,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
|
67831
67834
|
"ColorBlock",
|
|
67832
67835
|
"InstanceColorBlock",
|
|
67833
67836
|
"NormalBlock",
|
|
67837
|
+
"HeightToNormalBlock",
|
|
67834
67838
|
"TBNBlock",
|
|
67835
67839
|
"PerturbNormalBlock",
|
|
67836
67840
|
"NormalBlendBlock",
|
|
@@ -68083,6 +68087,7 @@ NodeListComponent._Tooltips = {
|
|
|
68083
68087
|
TwirlBlock: "Apply a twirl rotation",
|
|
68084
68088
|
ElbowBlock: "Passthrough block mostly used to organize your graph",
|
|
68085
68089
|
ClipPlanesBlock: "A node that add clip planes support",
|
|
68090
|
+
HeightToNormalBlock: "Convert a height map into a normal map",
|
|
68086
68091
|
};
|
|
68087
68092
|
|
|
68088
68093
|
|
|
@@ -68230,8 +68235,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68230
68235
|
|
|
68231
68236
|
|
|
68232
68237
|
|
|
68233
|
-
|
|
68234
|
-
|
|
68235
68238
|
|
|
68236
68239
|
|
|
68237
68240
|
|
|
@@ -68419,13 +68422,16 @@ class PreviewManager {
|
|
|
68419
68422
|
if (this._globalState.mode === core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.NodeMaterialModes.Material) {
|
|
68420
68423
|
switch (this._globalState.previewType) {
|
|
68421
68424
|
case _previewType__WEBPACK_IMPORTED_MODULE_1__.PreviewType.Box:
|
|
68422
|
-
core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.SceneLoader.AppendAsync("https://
|
|
68425
|
+
core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.SceneLoader.AppendAsync("https://assets.babylonjs.com/meshes/", "roundedCube.glb", this._scene).then(() => {
|
|
68423
68426
|
this._meshes.push(...this._scene.meshes);
|
|
68424
68427
|
this._prepareScene();
|
|
68425
68428
|
});
|
|
68426
68429
|
return;
|
|
68427
68430
|
case _previewType__WEBPACK_IMPORTED_MODULE_1__.PreviewType.Sphere:
|
|
68428
|
-
|
|
68431
|
+
core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.SceneLoader.AppendAsync("https://assets.babylonjs.com/meshes/", "previewSphere.glb", this._scene).then(() => {
|
|
68432
|
+
this._meshes.push(...this._scene.meshes);
|
|
68433
|
+
this._prepareScene();
|
|
68434
|
+
});
|
|
68429
68435
|
break;
|
|
68430
68436
|
case _previewType__WEBPACK_IMPORTED_MODULE_1__.PreviewType.Torus:
|
|
68431
68437
|
this._meshes.push((0,core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.CreateTorus)("dummy-torus", {
|
|
@@ -68435,20 +68441,20 @@ class PreviewManager {
|
|
|
68435
68441
|
}, this._scene));
|
|
68436
68442
|
break;
|
|
68437
68443
|
case _previewType__WEBPACK_IMPORTED_MODULE_1__.PreviewType.Cylinder:
|
|
68438
|
-
core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.SceneLoader.AppendAsync("https://
|
|
68444
|
+
core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.SceneLoader.AppendAsync("https://assets.babylonjs.com/meshes/", "roundedCylinder.glb", this._scene).then(() => {
|
|
68439
68445
|
this._meshes.push(...this._scene.meshes);
|
|
68440
68446
|
this._prepareScene();
|
|
68441
68447
|
});
|
|
68442
68448
|
return;
|
|
68443
68449
|
case _previewType__WEBPACK_IMPORTED_MODULE_1__.PreviewType.Plane: {
|
|
68444
|
-
|
|
68445
|
-
|
|
68446
|
-
|
|
68447
|
-
|
|
68450
|
+
core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.SceneLoader.AppendAsync("https://assets.babylonjs.com/meshes/", "highPolyPlane.glb", this._scene).then(() => {
|
|
68451
|
+
this._meshes.push(...this._scene.meshes);
|
|
68452
|
+
this._prepareScene();
|
|
68453
|
+
});
|
|
68448
68454
|
break;
|
|
68449
68455
|
}
|
|
68450
68456
|
case _previewType__WEBPACK_IMPORTED_MODULE_1__.PreviewType.ShaderBall:
|
|
68451
|
-
core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.SceneLoader.AppendAsync("https://
|
|
68457
|
+
core_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__.SceneLoader.AppendAsync("https://assets.babylonjs.com/meshes/", "shaderBall.glb", this._scene).then(() => {
|
|
68452
68458
|
this._meshes.push(...this._scene.meshes);
|
|
68453
68459
|
this._prepareScene();
|
|
68454
68460
|
});
|