瀏覽代碼

Fix dragged node registration [nme]

David Catuhe 5 年之前
父節點
當前提交
dcc14679d3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      nodeEditor/src/diagram/graphCanvas.tsx

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

@@ -689,6 +689,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
 
             // No destination so let's spin a new input block
             let inputBlock = new InputBlock(NodeMaterialBlockConnectionPointTypes[this._candidateLink!.portA.connectionPoint.type], undefined, this._candidateLink!.portA.connectionPoint.type);
+            this.props.globalState.nodeMaterial.attachedBlocks.push(inputBlock);
             pointA = inputBlock.output;
             nodeA = this.appendBlock(inputBlock);