| Issue 1: | node.findNode() doesn't work |
1 of 2
Next ›
|
| 1 person starred this issue and may be notified of changes. | Back to list |
Searching for a node with a specific name using findNode() doesn't work. The method alway return null, even if a node with the specified name exists.
The problem is caused by the following piece of code inside findNode() in Wrappers\Node.cs:
foreach (Node oNode in tChildren)
{
if (this.sName == oNode.getName())
return oNode;
}
Here you are comparing the name of each child against the name of *this* node instead of the passed parameter. The if-line should read
if (this.sName == oNode.getName())
May 3, 2011
#1
andr...@schusterandreas.de
May 4, 2011
Nice catch, thanks! This is now in r4 and will be included in the next binary release.
May 4, 2011
(No comment was entered for this change.)
Status:
Fixed
|