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

@ -429,6 +429,10 @@ PyObject* pyVaultNode::AddNode(pyVaultNode* pynode, PyObject* cbObject, UInt32 c
hsResult = hsFail; hsResult = hsFail;
} }
} }
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, VaultAddChildNode(fNode->nodeId,
pynode->fNode->nodeId, pynode->fNode->nodeId,
@ -437,8 +441,9 @@ PyObject* pyVaultNode::AddNode(pyVaultNode* pynode, PyObject* cbObject, UInt32 c
cb cb
); );
// just return a None object // Evil undocumented functionality that some fool
PYTHON_RETURN_NONE; // decided to use in xKI.py. Really???
return nodeRef;
} }
else else
{ {

Loading…
Cancel
Save