-----------------------------------------------------------------------
| 624 | } |
| 625 | //----------------------------------------------------------------------- |
| 626 | SceneNode* SceneManager::getSceneNode(const String& name, bool throwExceptionIfNotFound) const |
| 627 | { |
| 628 | OgreAssert(!name.empty(), "name must not be empty"); |
| 629 | auto i = mNamedNodes.find(name); |
| 630 | |
| 631 | if (i != mNamedNodes.end()) |
| 632 | return i->second; |
| 633 | |
| 634 | if (throwExceptionIfNotFound) |
| 635 | OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND, "SceneNode '" + name + "' not found."); |
| 636 | return NULL; |
| 637 | } |
| 638 | |
| 639 | //----------------------------------------------------------------------- |
| 640 | const Pass* SceneManager::_setPass(const Pass* pass, bool shadowDerivation) |
no test coverage detected