|
|
@ -225,6 +225,10 @@ void SurfaceManager::loadXmlSettings(string fileName) { |
|
|
|
if (sourceName != "" && sourceName != "none" && sourceType != "") { |
|
|
|
// Load source depending on type
|
|
|
|
int typeEnum = SourceType::GetSourceTypeEnum(sourceType); |
|
|
|
if (typeEnum == SourceType::SOURCE_TYPE_FBO) { |
|
|
|
// Load FBO source using sourceName
|
|
|
|
source = mediaServer->loadMedia(sourceName, typeEnum); |
|
|
|
} else { |
|
|
|
// Construct full path
|
|
|
|
string dir = mediaServer->getDefaultMediaDir(typeEnum); |
|
|
|
std::stringstream pathss; |
|
|
@ -233,6 +237,7 @@ void SurfaceManager::loadXmlSettings(string fileName) { |
|
|
|
// Load media by using full path
|
|
|
|
source = mediaServer->loadMedia(sourcePath, typeEnum); |
|
|
|
} |
|
|
|
} |
|
|
|
xmlSettings.popTag(); // source
|
|
|
|
xmlSettings.pushTag("vertices"); |
|
|
|
vector<ofVec2f> vertices; |
|
|
|