Esempio n. 1
0
GU_DetailHandle LiveScene::contentHandle() const
{
	std::string name;
	SceneInterface::Path path;
	relativeContentPath( path );
	pathToString( path, name );
	
	GU_DetailHandle handle = m_splitter->split( name.c_str() );
	
	// we need to try again, in case the user didn't use a / prefix on the shape name
	if ( handle.isNull() && m_contentIndex == 1 && !path.empty() && path[0] != "" )
	{
		handle = m_splitter->split( &name.c_str()[1] );
	}
	
	return handle;
}