Просмотр исходного кода

Fix dragged node registration [nme]

David Catuhe 5 лет назад
Родитель
Сommit
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
             // 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);
             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;
             pointA = inputBlock.output;
             nodeA = this.appendBlock(inputBlock);
             nodeA = this.appendBlock(inputBlock);