Write <archetype><meta> for assets in "My Inventory" folder too.

This commit is contained in:
Aleric Inglewood
2014-09-30 18:09:26 +02:00
parent 9b930c8716
commit 3555967812

View File

@@ -171,7 +171,9 @@ void AIArchetype::toXML(std::ostream& os, int indentation) const
{ {
tag.attribute("name", LLWearableType::getTypeName(mType)); tag.attribute("name", LLWearableType::getTypeName(mType));
} }
if (!mMetaData.mPath.empty()) // mMetaData.mPath can be empty even exporting from the Appearance editor:
// when the asset is in the "My Inventory" root.
if (!mMetaData.mPath.empty() || !mMetaData.mName.empty()) // Is this not an old-style linden_genepool?
{ {
tag.child(mMetaData); tag.child(mMetaData);
} }