Browse Source

Readd the stupid hack Cyan did in pyVaultNode::AddNode.

Adam Johnson 14 years ago
parent
commit
ea5ceb6f34
  1. 9
      Sources/Plasma/FeatureLib/pfPython/pyVaultNode.cpp

9
Sources/Plasma/FeatureLib/pfPython/pyVaultNode.cpp

@ -430,6 +430,10 @@ PyObject* pyVaultNode::AddNode(pyVaultNode* pynode, PyObject* cbObject, UInt32 c
}
}
PyObject* nodeRef = cb->fPyNodeRef = pyVaultNodeRef::New(fNode, pynode->fNode);
Py_INCREF(nodeRef); // The callback steals the ref, according to Eric...
cb->SetNode(pynode->fNode);
VaultAddChildNode(fNode->nodeId,
pynode->fNode->nodeId,
NetCommGetPlayer()->playerInt,
@ -437,8 +441,9 @@ PyObject* pyVaultNode::AddNode(pyVaultNode* pynode, PyObject* cbObject, UInt32 c
cb
);
// just return a None object
PYTHON_RETURN_NONE;
// Evil undocumented functionality that some fool
// decided to use in xKI.py. Really???
return nodeRef;
}
else
{

Loading…
Cancel
Save