David Catuhe 5 năm trước cách đây
mục cha
commit
8911d9f139
3 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 1 1
      dist/preview release/babylon.js
  2. 2 1
      nodeEditor/src/diagram/graphCanvas.tsx
  3. 1 1
      package.json

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.js


+ 2 - 1
nodeEditor/src/diagram/graphCanvas.tsx

@@ -1,6 +1,7 @@
 import * as React from "react";
 import { GlobalState } from '../globalState';
 import { NodeMaterialBlock } from 'babylonjs/Materials/Node/nodeMaterialBlock';
+import { NodeMaterialBlockConnectionPointTypes } from 'babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes';
 import { GraphNode } from './graphNode';
 import * as dagre from 'dagre';
 import { Nullable } from 'babylonjs/types';
@@ -687,7 +688,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
             }
 
             // No destination so let's spin a new input block
-            let inputBlock = new InputBlock("", undefined, this._candidateLink!.portA.connectionPoint.type);
+            let inputBlock = new InputBlock(NodeMaterialBlockConnectionPointTypes[this._candidateLink!.portA.connectionPoint.type], undefined, this._candidateLink!.portA.connectionPoint.type);
             pointA = inputBlock.output;
             nodeA = this.appendBlock(inputBlock);
             

+ 1 - 1
package.json

@@ -98,7 +98,7 @@
         "tslib": "^1.10.0",
         "tslint": "^5.11.0",
         "typedoc": "^0.15.4",
-        "typescript": "~3.7.3",
+        "typescript": "~3.7.5",
         "webpack": "^4.29.3",
         "webpack-bundle-analyzer": "^3.1.0",
         "webpack-cli": "^3.3.9",