@babylonjs/node-geometry-editor 6.16.0 → 6.16.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.
@@ -52470,7 +52470,9 @@ class GraphCanvasComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component
52470
52470
  link.onDisposedObservable.notifyObservers(link);
52471
52471
  link.onDisposedObservable.clear();
52472
52472
  });
52473
- this.props.stateManager.onRebuildRequiredObservable.notifyObservers();
52473
+ if (!nodeB.content.isConnectedToOutput || nodeB.content.isConnectedToOutput()) {
52474
+ this.props.stateManager.onRebuildRequiredObservable.notifyObservers();
52475
+ }
52474
52476
  }
52475
52477
  connectNodes(nodeA, pointA, nodeB, pointB) {
52476
52478
  pointA.connectTo(pointB);
@@ -55250,11 +55252,14 @@ __webpack_require__.r(__webpack_exports__);
55250
55252
 
55251
55253
 
55252
55254
 
55255
+
55253
55256
 
55254
55257
 
55255
55258
  class BlockTools {
55256
55259
  static GetBlockFromString(data) {
55257
55260
  switch (data) {
55261
+ case "OptimizeBlock":
55262
+ return new core_Meshes_Node_Enums_nodeGeometryConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__.GeometryOptimizeBlock("Optimize");
55258
55263
  case "NullBlock":
55259
55264
  return new core_Meshes_Node_Enums_nodeGeometryConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__.NullBlock("Null");
55260
55265
  case "TeleportInBlock":
@@ -55835,7 +55840,17 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
55835
55840
  Matrices: ["RotationXBlock", "RotationYBlock", "RotationZBlock", "ScalingBlock", "TranslationBlock", "AlignBlock"],
55836
55841
  Instances: ["InstantiateOnVerticesBlock", "InstantiateOnFacesBlock"],
55837
55842
  Misc: ["ElbowBlock", "DebugBlock", "TeleportInBlock", "TeleportOutBlock"],
55838
- Updates: ["SetColorsBlock", "SetNormalsBlock", "SetPositionsBlock", "SetTangentsBlock", "SetUVsBlock", "SetMaterialIDBlock", "MergeBlock", "ComputeNormalsBlock"],
55843
+ Updates: [
55844
+ "SetColorsBlock",
55845
+ "SetNormalsBlock",
55846
+ "SetPositionsBlock",
55847
+ "SetTangentsBlock",
55848
+ "SetUVsBlock",
55849
+ "SetMaterialIDBlock",
55850
+ "MergeBlock",
55851
+ "ComputeNormalsBlock",
55852
+ "OptimizeBlock",
55853
+ ],
55839
55854
  Noises: ["RandomBlock", "NoiseBlock"],
55840
55855
  Output_Nodes: ["GeometryOutputBlock"],
55841
55856
  };
@@ -55968,6 +55983,7 @@ NodeListComponent._Tooltips = {
55968
55983
  NoiseBlock: "Generate a value using Perlin noise algorithm",
55969
55984
  GeometryOutputBlock: "Output block used to gather the final geometry",
55970
55985
  NullBlock: "Generate an empty geometry",
55986
+ OptimizeBlock: "Eliminate vertices that share positions with another vertex",
55971
55987
  };
55972
55988
 
55973
55989
 
@@ -57505,6 +57521,10 @@ class BlockNodeData {
57505
57521
  }
57506
57522
  return null;
57507
57523
  }
57524
+ isConnectedToOutput() {
57525
+ const block = this.data;
57526
+ return block.isAnAncestorOfType("GeometryOutputBlock");
57527
+ }
57508
57528
  dispose() {
57509
57529
  this.data.dispose();
57510
57530
  this.data.onBuildObservable.remove(this._onBuildObserver);