Set names on screenSpaceImage

This commit is contained in:
Sebastian Piwell
2016-05-06 16:27:55 -04:00
parent eebda18fee
commit e6ac01a1c7
4 changed files with 11 additions and 5 deletions
+7 -2
View File
@@ -36,8 +36,13 @@ ScreenSpaceImage::ScreenSpaceImage(const ghoul::Dictionary& dictionary)
,_downloadImage(false)
,_futureTexture(nullptr)
{
_id = id();
setName("ScreenSpaceImage" + std::to_string(_id));
std::string name;
if(dictionary.getValue("Name", name)){
setName(name);
}else{
_id = id();
setName("ScreenSpaceImage" + std::to_string(_id));
}
addProperty(_texturePath);
registerProperties();