Explorar o código

Fix dragged node registration [nme]

David Catuhe %!s(int64=5) %!d(string=hai) anos
pai
achega
dcc14679d3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);