Browse Source

Fix dragged node registration [nme]

David Catuhe 5 years ago
parent
commit
dcc14679d3
1 changed files with 1 additions and 0 deletions
  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);