Jump to content

Editor::getNodeByName()


photo

Recommended Posts

Problem

 

Not a real bug, but Editor::getNodeByName() always logs error message to console when node with specified name cannot be found. This is annoying as this might be a perfect valid condition.

 

Proposal

 

Removal of error message output, just return NULL.

Link to comment

There is Editor::findNode() function which returns -1 if such node isn't exist.

Return value can be used in Editor::getNode() function.

Editor::getNodeByName() expects than node is really exists.

Link to comment
×
×
  • Create New...