fix on onConnectInput to have more info

This commit is contained in:
tamat
2020-05-05 12:57:59 +02:00
parent 3087acad00
commit a1c312fab9
4 changed files with 45 additions and 55 deletions

View File

@@ -3589,10 +3589,7 @@
//allows nodes to block connection
if (target_node.onConnectInput) {
if (
target_node.onConnectInput(target_slot, output.type, output) ===
false
) {
if ( target_node.onConnectInput(target_slot, output.type, output, this, slot) === false ) {
return null;
}
}