Further work on removing assertions from constructors

This commit is contained in:
Jonas Strandstedt
2014-12-12 11:46:10 +01:00
parent 93a34fa985
commit 5c666a0175
3 changed files with 20 additions and 14 deletions

View File

@@ -78,6 +78,11 @@ Renderable::Renderable(const ghoul::Dictionary& dictionary)
#endif
// get path if available
bool success = dictionary.getValue(constants::scenegraph::keyPathModule, _relativePath);
#ifndef NDEBUG
ghoul_assert(success,
"Scenegraphnode need to specify '" << constants::scenegraph::keyPathModule
<< "' because renderables is going to use this for debugging!");
#endif
if (success)
_relativePath += ghoul::filesystem::FileSystem::PathSeparator;