Just in case gAgentUsername is empty...
parent
2b9a8d7255
commit
687da1144c
|
|
@ -743,7 +743,9 @@ bool DAESaver::saveDAE(std::string filename)
|
|||
up_axis->setCharData("Z_UP");
|
||||
|
||||
// File creator
|
||||
std::string author = gAgentUsername;
|
||||
std::string author = "Unknown";
|
||||
if (!gAgentUsername.empty())
|
||||
author = gAgentUsername;
|
||||
|
||||
daeElement* contributor = asset->add("contributor");
|
||||
contributor->add("author")->setCharData(author);
|
||||
|
|
|
|||
|
|
@ -299,7 +299,9 @@ bool FSFloaterObjectExport::exportSelection()
|
|||
mAssetRequests.clear();
|
||||
mTextureChecked.clear();
|
||||
|
||||
std::string author = gAgentUsername;
|
||||
std::string author = "Unknown";
|
||||
if (!gAgentUsername.empty())
|
||||
author = gAgentUsername;
|
||||
|
||||
time_t rawtime;
|
||||
time(&rawtime);
|
||||
|
|
|
|||
Loading…
Reference in New Issue